commit | 5c75633ef751dd4cd8f443dc35152c1ae563162e | [log] [tgz] |
---|---|---|
author | Johan Hovold <johan@kernel.org> | Tue Jan 03 16:39:55 2017 +0100 |
committer | Johan Hovold <johan@kernel.org> | Wed Jan 04 10:37:20 2017 +0100 |
tree | c13653b5c65ae3a665c28a3c5f0e98698908c924 | |
parent | 9da049bcedf43e20e8cb77ee00a1239497ed9fa2 [diff] |
USB: serial: mos7840: fix NULL-deref at open Fix NULL-pointer dereference in open() should the device lack the expected endpoints: Unable to handle kernel NULL pointer dereference at virtual address 00000030 ... PC is at mos7840_open+0x88/0x8dc [mos7840] Note that we continue to treat the interrupt-in endpoint as optional for now. Fixes: 3f5429746d91 ("USB: Moschip 7840 USB-Serial Driver") Cc: stable <stable@vger.kernel.org> Signed-off-by: Johan Hovold <johan@kernel.org>