diff options
author | William Breathitt Gray | 2017-11-08 10:23:11 -0500 |
---|---|---|
committer | Greg Kroah-Hartman | 2017-11-28 16:40:58 +0100 |
commit | 5a244727f428a06634f22bb890e78024ab0c89f3 (patch) | |
tree | d703c69f1b1da24a8bbf2e0f95c9f97f315ff162 /include/linux/devfreq_cooling.h | |
parent | f50caa9b517a2542ae9769fc17ad84110ae07c8b (diff) |
isa: Prevent NULL dereference in isa_bus driver callbacks
The isa_driver structure for an isa_bus device is stored in the device
platform_data member of the respective device structure. This
platform_data member may be reset to NULL if isa_driver match callback
for the device fails, indicating a device unsupported by the ISA driver.
This patch fixes a possible NULL pointer dereference if one of the
isa_driver callbacks to attempted for an unsupported device. This error
should not occur in practice since ISA devices are typically manually
configured and loaded by the users, but we may as well prevent this
error from popping up for the 0day testers.
Fixes: a5117ba7da37 ("[PATCH] Driver model: add ISA bus")
Signed-off-by: William Breathitt Gray <vilhelm.gray@gmail.com>
Cc: stable <stable@vger.kernel.org>
Acked-by: Linus Torvalds <torvalds@linux-foundation.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/devfreq_cooling.h')
0 files changed, 0 insertions, 0 deletions