答复: [PATCH] staging: greybus: Fix potential NULL dereference

From: 白浩文
Date: Fri Mar 11 2022 - 03:51:00 EST


Oh, my careless to check code. Thank you for your kindly reminder.
________________________________________
发件人: Viresh Kumar <viresh.kumar@xxxxxxxxxx>
发送时间: 2022年3月11日 16:40:19
收件人: 白浩文
抄送: vireshk@xxxxxxxxxx; johan@xxxxxxxxxx; elder@xxxxxxxxxx; gregkh@xxxxxxxxxxxxxxxxxxx; linux-staging@xxxxxxxxxxxxxxx; linux-kernel@xxxxxxxxxxxxxxx
主题: Re: [PATCH] staging: greybus: Fix potential NULL dereference

On 11-03-22, 16:35, Haowen Bai wrote:
> Fix following coccicheck warning:
> drivers/staging/greybus/bootrom.c:301:35-39: ERROR: fw is NULL but dereferenced.
>
> When goto queue_work but dereference Uninitialized fw will trigger a NULL
> dereference.

Please have a look at earlier attempts like this:

https://lore.kernel.org/all/2015099.xVv48VzNit@linux.local/

--
viresh