diff options
author | Johan Hovold <johan@kernel.org> | 2020-01-22 13:15:26 +0300 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2020-01-23 11:10:58 +0300 |
commit | 2988a8ae7476fe9535ab620320790d1714bdad1d (patch) | |
tree | 5d10d97aab01630eb06f092a70f690b5ae543ec6 /net/unix/af_unix.c | |
parent | 50c3c5e1c1b000d6a321ffdc0003bc6b7ac0b0e5 (diff) | |
download | linux-2988a8ae7476fe9535ab620320790d1714bdad1d.tar.xz |
USB: serial: ir-usb: add missing endpoint sanity check
Add missing endpoint sanity check to avoid dereferencing a NULL-pointer
on open() in case a device lacks a bulk-out endpoint.
Note that prior to commit f4a4cbb2047e ("USB: ir-usb: reimplement using
generic framework") the oops would instead happen on open() if the
device lacked a bulk-in endpoint and on write() if it lacked a bulk-out
endpoint.
Fixes: f4a4cbb2047e ("USB: ir-usb: reimplement using generic framework")
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 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions