lkml.org 
[lkml]   [2021]   [Oct]   [5]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH] [v18 2/2] wireless: Initial driver submission for pureLiFi STA devices
From
On 10/5/2021 5:31 AM, Srinivasan Raju wrote:> +		fw_data = 
kmemdup(&fw->data[fw_data_i], blk_tran_len,> + GFP_KERNEL);> +> +
for (tbuf_idx = 0; tbuf_idx < blk_tran_len; tbuf_idx++) {> + /* u8 bit
reverse */> + fw_data[tbuf_idx] = bitrev8(fw_data[tbuf_idx]);> + }
note kmemdup() can return NULL, hence the reference to fw_data[] can
dereference NULL.

\
 
 \ /
  Last update: 2021-10-06 00:10    [W:0.856 / U:4.872 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site