diff options
author | Johan Hovold <johan@kernel.org> | 2020-01-17 12:50:23 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-01-17 18:22:57 +0300 |
commit | e37d1aeda737a20b1846a91a3da3f8b0f00cf690 (patch) | |
tree | c9f70bd8160ecfa8c87fac055c515e81869f3ea4 /samples | |
parent | 4d5ef53f75c22d28f490bcc5c771fcc610a9afa4 (diff) | |
download | linux-e37d1aeda737a20b1846a91a3da3f8b0f00cf690.tar.xz |
USB: serial: io_edgeport: handle unbound ports on URB completion
Check for NULL port data in the shared interrupt and bulk completion
callbacks to avoid dereferencing a NULL pointer in case a device sends
data for a port device which isn't bound to a driver (e.g. due to a
malicious device having unexpected endpoints or after an allocation
failure on port probe).
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions