diff options
| author | Johan Hovold <johan@kernel.org> | 2020-01-17 10:50:25 +0100 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-23 08:18:39 +0100 |
| commit | 9d25f0d17bc9f84aacc7d11b5175fecfa2da3617 (patch) | |
| tree | 6f58c4157ad12367d704ce780d93138d8281d982 /net/ipv4/tcp_input.c | |
| parent | 8144d3b60613bee0929493a8846a4bed50aff68f (diff) | |
USB: serial: keyspan: handle unbound ports
[ Upstream commit 3018dd3fa114b13261e9599ddb5656ef97a1fa17 ]
Check for NULL port data in the control URB completion handlers to avoid
dereferencing a NULL pointer in the unlikely case where a port device
isn't bound to a driver (e.g. after an allocation failure on port
probe()).
Fixes: 0ca1268e109a ("USB Serial Keyspan: add support for USA-49WG & USA-28XG")
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: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/ipv4/tcp_input.c')
0 files changed, 0 insertions, 0 deletions
