Search Linux Wireless
Re: [PATCH] [v18 2/2] wireless: Initial driver submission for pureLiFi STA devices
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
- To: Srinivasan Raju <srini.raju@xxxxxxxxxxxx>
- Subject: Re: [PATCH] [v18 2/2] wireless: Initial driver submission for pureLiFi STA devices
- From: Jeff Johnson <jjohnson@xxxxxxxxxxxxxx>
- Date: Tue, 5 Oct 2021 15:09:58 -0700
- Cc: mostafa.afgani@xxxxxxxxxxxx, Kalle Valo <kvalo@xxxxxxxxxxxxxx>, "David S. Miller" <davem@xxxxxxxxxxxxx>, Jakub Kicinski <kuba@xxxxxxxxxx>, open list <linux-kernel@xxxxxxxxxxxxxxx>, "open list:NETWORKING DRIVERS (WIRELESS)" <linux-wireless@xxxxxxxxxxxxxxx>, "open list:NETWORKING DRIVERS" <netdev@xxxxxxxxxxxxxxx>
- In-reply-to: <20211005123230.13813-1-srini.raju@purelifi.com>
- References: <20200928102008.32568-1-srini.raju@purelifi.com> <20211005123230.13813-1-srini.raju@purelifi.com>
- User-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.0.1
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.
[Index of Archives]
[Linux Host AP]
[ATH6KL]
[Linux Wireless Personal Area Network]
[Linux Bluetooth]
[Wireless Regulations]
[Linux Netdev]
[Kernel Newbies]
[Linux Kernel]
[IDE]
[Git]
[Netfilter]
[Bugtraq]
[Yosemite Hiking]
[MIPS Linux]
[ARM Linux]
[Linux RAID]