diff options
author | Johannes Berg <johannes.berg@intel.com> | 2010-08-18 17:15:18 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-08-24 03:12:46 +0200 |
commit | f45f3c1f3f616ca1d1e1eb5e7a720ca63cb59550 (patch) | |
tree | 86377f566006497bb55aa4dac3c05e49c632688d /lib/kobject_uevent.c | |
parent | kobject: Break the kobject namespace defs into their own header (diff) | |
download | linux-f45f3c1f3f616ca1d1e1eb5e7a720ca63cb59550.tar.xz linux-f45f3c1f3f616ca1d1e1eb5e7a720ca63cb59550.zip |
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 f8a4bd3456b988fc73b2c.
Reported-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Acked-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Pekka Enberg <penberg@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/kobject_uevent.c')
0 files changed, 0 insertions, 0 deletions