Jia-Ju Bai
9a24d3f8c5
USB: serial: io_edgeport: fix possible sleep-in-atomic
...
commit c7b8f77872 upstream.
According to drivers/usb/serial/io_edgeport.c, the driver may sleep
under a spinlock.
The function call path is:
edge_bulk_in_callback (acquire the spinlock)
process_rcvd_data
process_rcvd_status
change_port_settings
send_iosp_ext_cmd
write_cmd_usb
usb_kill_urb --> may sleep
To fix it, the redundant usb_kill_urb() is removed from the error path
after usb_submit_urb() fails.
This possible bug is found by my static analysis tool (DSAC) and checked
by my code review.
Signed-off-by: Jia-Ju Bai <baijiaju1990@gmail.com >
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Signed-off-by: Johan Hovold <johan@kernel.org >
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org >
2018-02-03 17:39:20 +01:00
..
2017-11-02 11:10:55 +01:00
2018-02-03 17:38:59 +01:00
2017-11-02 11:10:55 +01:00
2018-01-02 20:31:15 +01:00
2018-01-23 19:58:18 +01:00
2017-12-14 09:53:13 +01:00
2018-02-03 17:39:07 +01:00
2018-01-17 09:45:27 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:00 +01:00
2017-12-25 14:26:27 +01:00
2018-01-10 09:31:19 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:49 +01:00
2017-12-29 17:53:48 +01:00
2017-12-10 13:40:41 +01:00
2018-02-03 17:39:00 +01:00
2017-12-25 14:26:30 +01:00
2018-02-03 17:38:50 +01:00
2017-12-20 10:10:34 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:24 +01:00
2017-12-10 13:40:44 +01:00
2017-12-10 13:40:41 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-10 09:31:18 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-08-28 17:15:16 +02:00
2018-02-03 17:38:52 +01:00
2018-02-03 17:39:17 +01:00
2018-02-03 17:38:51 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:20 +01:00
2018-02-03 17:39:09 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:07 +01:00
2017-12-17 15:08:00 +01:00
2017-11-04 15:01:50 +01:00
2017-12-25 14:26:26 +01:00
2018-01-31 14:03:46 +01:00
2018-01-31 14:03:42 +01:00
2018-01-10 09:31:21 +01:00
2017-12-14 09:53:05 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:27 +01:00
2017-12-20 10:10:38 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:12 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:01 +01:00
2018-02-03 17:39:17 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:46 +01:00
2017-12-25 14:26:20 +01:00
2018-01-23 19:58:13 +01:00
2018-02-03 17:38:52 +01:00
2018-01-17 09:45:27 +01:00
2018-02-03 17:39:16 +01:00
2017-11-02 11:10:55 +01:00
2017-08-01 13:31:44 -04:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:49 +01:00
2018-02-03 17:39:10 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-02 11:10:55 +01:00
2017-12-29 17:53:47 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2018-01-23 19:58:16 +01:00
2017-12-29 17:53:48 +01:00
2018-01-17 09:45:18 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:38:51 +01:00
2017-09-08 18:26:51 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-14 09:53:08 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:29 +01:00
2018-01-05 15:48:59 +01:00
2018-02-03 17:38:59 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:15 +01:00
2017-07-20 11:37:58 +02:00
2017-11-02 11:10:55 +01:00
2017-12-20 10:10:34 +01:00
2017-12-29 17:53:47 +01:00
2017-08-28 13:52:22 +02:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:19 +01:00
2018-01-02 20:31:05 +01:00
2017-12-25 14:26:24 +01:00
2017-12-25 14:26:31 +01:00
2017-12-20 10:10:24 +01:00
2018-02-03 17:39:19 +01:00
2017-11-02 11:10:55 +01:00
2018-02-03 17:39:20 +01:00
2017-11-02 11:10:55 +01:00
2017-12-25 14:26:29 +01:00
2017-12-17 15:07:56 +01:00
2017-12-25 14:26:24 +01:00
2017-08-29 08:52:51 -05:00
2017-12-14 09:52:48 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 10:04:46 -07:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00
2017-11-02 11:10:55 +01:00