summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorWilliam Breathitt Gray <vilhelm.gray@gmail.com>2017-11-08 18:23:11 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-12-16 12:33:48 +0300
commit98448333588c4a516a44e31d3ffcce4c3406a3b7 (patch)
tree042af722f0a71466bfffa9a867d4524292aced41 /include
parent90e2ea6dc851a3c92f160684591856da43b27bf2 (diff)
downloadlinux-98448333588c4a516a44e31d3ffcce4c3406a3b7.tar.xz
isa: Prevent NULL dereference in isa_bus driver callbacks
commit 5a244727f428a06634f22bb890e78024ab0c89f3 upstream. 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> Acked-by: Linus Torvalds <torvalds@linux-foundation.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions