diff options
author | Christian Gromm <christian.gromm@microchip.com> | 2018-05-08 11:45:15 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-08 13:41:51 +0200 |
commit | c06b99e002d06a69174a862c0da43ce0cebfe78d (patch) | |
tree | 4fd691568995722966a20b7a09230c90104842da /samples | |
parent | 9a32315b0b162a9ec13c41c0c69d4b93095494ca (diff) |
staging: most: usb: fix usb_disconnect race condition
The functions usb_disconnect and usb_sndbulkpipe are racing for the struct
usb_device, which might cause a null pointer dereference exception. This
patch fixes this race condition by protecting the critical section inside
the function hdm_enque with the io_mutex.
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'samples')
0 files changed, 0 insertions, 0 deletions