]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
USB: visor: fix null-deref at probe
authorJohan Hovold <johan@kernel.org>
Tue, 12 Jan 2016 11:05:20 +0000 (12:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 19 Feb 2016 22:28:33 +0000 (14:28 -0800)
commit52827582844e0a6b951875e64d799e68ed4cceb7
treee34728873e5f50a9dbc236dfb7a0296952f52ebb
parentac4589db9b4285b662456715a4c07110bc37370e
USB: visor: fix null-deref at probe

commit cac9b50b0d75a1d50d6c056ff65c005f3224c8e0 upstream.

Fix null-pointer dereference at probe should a (malicious) Treo device
lack the expected endpoints.

Specifically, the Treo port-setup hack was dereferencing the bulk-in and
interrupt-in urbs without first making sure they had been allocated by
core.

Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/visor.c