在 2026/7/31 19:20, Greg KH 写道:
On Tue, Jul 28, 2026 at 04:44:52PM +0800, Pei Xiao wrote:
In gb_bootrom_get_firmware(), when fw is NULL, ret is already set to ERRNO before jumping to the queue_work label, so !ret is always false and fw->size is never dereferenced. Add an explicit NULL check to silence a coccinelle false positive warning.
Why not fix the coccinelle tool/script instead?
Maybe I need to learn coccinelle tool.
Thanks! Pei.
thanks,
greg k-h