commit | c06b99e002d06a69174a862c0da43ce0cebfe78d | [log] [tgz] |
---|---|---|
author | Christian Gromm <christian.gromm@microchip.com> | Tue May 08 11:45:15 2018 +0200 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Tue May 08 13:41:51 2018 +0200 |
tree | 4fd691568995722966a20b7a09230c90104842da | |
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>