Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
firmware_class: fix typo in error path
In the error path, _request_firmware sets firmware_p to NULL rather than *firmware_p, which leads to passing a freed firmware struct to drivers when the firmware file cannot be found. Fix this. Broken by commit f8a4bd3. Reported-by: Wey-Yi Guy <[email protected]> Signed-off-by: Johannes Berg <[email protected]> Acked-by: Dmitry Torokhov <[email protected]> Signed-off-by: Pekka Enberg <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
- Loading branch information