]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
s390/cio: verify the driver availability for path_event call
authorVineeth Vijayan <vneethv@linux.ibm.com>
Wed, 2 Feb 2022 20:45:56 +0000 (21:45 +0100)
committerVasily Gorbik <gor@linux.ibm.com>
Wed, 9 Feb 2022 21:55:01 +0000 (22:55 +0100)
commitdd9cb842fa9d90653a9b48aba52f89c069f3bc50
tree84919f73f28005929259e1dce46818c64d3ae55b
parente286f231eab410793f3e91c924e6dbd23edee05a
s390/cio: verify the driver availability for path_event call

If no driver is attached to a device or the driver does not provide the
path_event function, an FCES path-event on this device could end up in a
kernel-panic. Verify the driver availability before the path_event
function call.

Fixes: 32ef938815c1 ("s390/cio: Add support for FCES status notification")
Cc: stable@vger.kernel.org
Signed-off-by: Vineeth Vijayan <vneethv@linux.ibm.com>
Suggested-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Reviewed-by: Jan Hoeppner <hoeppner@linux.ibm.com>
Reviewed-by: Peter Oberparleiter <oberpar@linux.ibm.com>
Signed-off-by: Vasily Gorbik <gor@linux.ibm.com>
drivers/s390/cio/device.c