diff options
| author | Nobuo Iwata <[email protected]> | 2016-10-13 03:49:02 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2016-11-07 09:19:49 +0000 |
| commit | d79cda045e3bacb7e754a5324cd3d4ce80708eb1 (patch) | |
| tree | 6ecd81986ce1dd6925946490b8604503afefa50f /drivers/usb/class/cdc-acm.c | |
| parent | usbip: deletion of incorrect socket descriptor checking (diff) | |
| download | kernel-d79cda045e3bacb7e754a5324cd3d4ce80708eb1.tar.gz kernel-d79cda045e3bacb7e754a5324cd3d4ce80708eb1.zip | |
usbip: fix possibility of dereference by NULLL pointer in vhci_hcd.c
This patch fixes possibility of dereference by NULLL pointer in "[PATCH
v5 1/3] usbip: vhci extension: modifications to vhci driver" which has
been merged to 4.9-rc1. It occurs when a URB with pointer to invalid
USB/IP device is enqueued in race condition against detach operation.
A pointer was passed to vdev_to_vhci() before NULL check.
In vdev_to_vhci(), there's a dereference by the pointer.
This patch moves vdev_to_vhci() after NULL check of the pointer.
Signed-off-by: Nobuo Iwata <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/class/cdc-acm.c')
0 files changed, 0 insertions, 0 deletions
