diff options
| author | Johan Hovold <johan@kernel.org> | 2017-02-09 12:11:41 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2017-02-26 11:07:50 +0100 |
| commit | 1ae570ab1c062e6f308897955a5c00dcd4ba784d (patch) | |
| tree | 845c6b2e1fbd75ec4fdec21d9f0b7f37abde0af3 /kernel/sysctl_binary.c | |
| parent | 04fae8abfaef454d9ed299c9e83db63bb65b3c19 (diff) | |
USB: serial: mos7840: fix another NULL-deref at open
commit 5182c2cf2a9bfb7f066ef0bdd2bb6330b94dd74e upstream.
Fix another NULL-pointer dereference at open should a malicious device
lack an interrupt-in endpoint.
Note that the driver has a broken check for an interrupt-in endpoint
which means that an interrupt URB has never even been submitted.
Fixes: 3f5429746d91 ("USB: Moschip 7840 USB-Serial Driver")
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 'kernel/sysctl_binary.c')
0 files changed, 0 insertions, 0 deletions
