driver/wifi: fix firmware pointer check

Issue #5360.
This commit is contained in:
Josef Söntgen 2024-09-30 16:56:08 +02:00 committed by Stefan Kalkowski
parent 5d33ea7242
commit 95c439e758

View File

@ -179,7 +179,7 @@ int request_firmware_common(const struct firmware **firmware_p,
{
struct firmware *fw;
if (!*firmware_p)
if (!firmware_p)
return -1;
fw = kzalloc(sizeof(struct firmware), GFP_KERNEL);