summaryrefslogtreecommitdiff
path: root/drivers/message/fusion/mptctl.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2020-01-17 15:35:26 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-23 08:18:39 +0100
commit7f10c491c0f070c9a73dec0cb934a35a9fdb2542 (patch)
tree895e50060b8b1d508f54ab90edc6d09aa3708c77 /drivers/message/fusion/mptctl.c
parent7c02152b7cef2902e718aebab3684da46ddf787e (diff)
USB: serial: quatech2: handle unbound ports
commit 9715a43eea77e42678a1002623f2d9a78f5b81a1 upstream. Check for NULL port data in the modem- and line-status handlers to avoid dereferencing a NULL pointer in the unlikely case where a port device isn't bound to a driver (e.g. after an allocation failure on port probe). Note that the other (stubbed) event handlers qt2_process_xmit_empty() and qt2_process_flush() would need similar sanity checks in case they are ever implemented. Fixes: f7a33e608d9a ("USB: serial: add quatech2 usb to serial driver") Cc: stable <stable@vger.kernel.org> # 3.5 Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
0 files changed, 0 insertions, 0 deletions