diff options
author | Johan Hovold <johan@kernel.org> | 2020-01-17 10:50:24 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 08:18:38 +0100 |
commit | 7c02152b7cef2902e718aebab3684da46ddf787e (patch) | |
tree | 80075c5dfe8a99af30488160fa9d07173b87c960 /drivers/message/fusion/mptctl.c | |
parent | 2e468b2b38c9476b59e59d397801644885533ee6 (diff) |
USB: serial: io_edgeport: add missing active-port sanity check
commit 1568c58d11a7c851bd09341aeefd6a1c308ac40d upstream.
The driver receives the active port number from the device, but never
made sure that the port number was valid. This could lead to a
NULL-pointer dereference or memory corruption in case a device sends
data for an invalid port.
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/message/fusion/mptctl.c')
0 files changed, 0 insertions, 0 deletions