lkml.org 
[lkml]   [2021]   [Aug]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH v7] rtw_security: fix cast to restricted __le32
On Sun, Aug 01, 2021 at 11:51:52PM +0800, Jhih-Ming Huang wrote:
> This patch fixes the sparse warning of fix cast to restricted __le32.
>
> There was a change for replacing private CRC-32 routines with in kernel
> ones.
> However, the author used le32_to_cpu to convert crc32_le(), and we
> should use cpu_to_le32.
>
> Reported-by: kernel test robot <lkp@intel.com>
> Signed-off-by: Jhih-Ming Huang <fbihjmeric@gmail.com>
> ---
> changes from v6:
> using get_unaligned_le32 to get the value and comparing it with crc,
> instead of using memcmp with raw pointers.
>
> drivers/staging/rtl8723bs/core/rtw_security.c | 12 +++---------
> 1 file changed, 3 insertions(+), 9 deletions(-)

Does not apply to the tree :(

\
 
 \ /
  Last update: 2021-08-05 13:19    [W:0.084 / U:0.080 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site