Johan Hovold
a5bc01949e
USB: serial: omninet: fix NULL-derefs at open and disconnect
Fix NULL-pointer dereferences at open() and disconnect() should the
device lack the expected bulk-out endpoints:
Unable to handle kernel NULL pointer dereference at virtual address 000000b4
...
[c0170ff0>] (__lock_acquire) from [<c0172f00>] (lock_acquire+0x108/0x264)
[<c0172f00>] (lock_acquire) from [<c06a5090>] (_raw_spin_lock_irqsave+0x58/0x6c)
[<c06a5090>] (_raw_spin_lock_irqsave) from [<c0470684>] (tty_port_tty_set+0x28/0xa4)
[<c0470684>] (tty_port_tty_set) from [<bf08d384>] (omninet_open+0x30/0x40 [omninet])
[<bf08d384>] (omninet_open [omninet]) from [<bf07c118>] (serial_port_activate+0x68/0x98 [usbserial])
Unable to handle kernel NULL pointer dereference at virtual address 00000234
...
[<bf01f418>] (omninet_disconnect [omninet]) from [<bf0016c0>] (usb_serial_disconnect+0xe4/0x100 [usbserial])
Fixes: 1da177e4c3 ("Linux-2.6.12-rc2")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Johan Hovold <johan@kernel.org>
2017-01-04 10:37:21 +01:00
..
2015-02-26 17:13:05 +01:00
2016-10-24 17:41:30 +02:00
2016-04-30 09:26:55 -07:00
2016-12-01 16:12:12 +01:00
2017-01-04 10:37:14 +01:00
2016-03-31 09:28:46 -07:00
2016-04-30 09:26:55 -07:00
2015-03-27 17:36:29 +01:00
2017-01-02 10:31:08 +01:00
2016-11-07 10:23:03 +01:00
2016-12-01 16:12:12 +01:00
2016-02-28 14:35:58 +01:00
2017-01-04 10:37:15 +01:00
2016-07-16 12:45:39 +02:00
2017-01-04 10:37:15 +01:00
2017-01-04 10:37:17 +01:00
2014-05-27 15:12:57 -07:00
2015-12-18 09:30:34 -08:00
2017-01-04 10:37:18 +01:00
2016-11-29 11:13:16 +01:00
2017-01-04 10:37:18 +01:00
2016-05-10 09:39:57 +02:00
2016-11-30 10:54:30 +01:00
2017-01-04 10:37:18 +01:00
2016-11-29 11:13:16 +01:00
2016-03-31 09:28:46 -07:00
2017-01-04 10:37:20 +01:00
2017-01-04 10:37:21 +01:00
2016-05-20 21:12:25 -07:00
2017-01-04 10:37:21 +01:00
2016-11-11 17:54:04 +01:00
2016-12-09 11:44:11 +01:00
2015-07-30 18:11:07 +02:00
2015-04-29 12:34:24 +02:00
2016-03-02 09:35:32 +01:00
2016-11-11 17:54:04 +01:00
2016-02-28 14:36:53 +01:00
2016-04-30 09:26:55 -07:00
2014-03-12 12:44:50 -07:00
2016-11-11 17:54:04 +01:00
2015-08-18 10:06:22 -07:00
2016-11-11 17:54:04 +01:00
2016-11-11 17:54:04 +01:00
2016-09-12 10:19:41 +02:00
2016-10-21 16:47:17 +02:00
2015-10-09 12:42:40 +02:00
2016-01-25 11:40:45 +01:00
2015-09-23 12:15:19 -07:00
2014-09-04 11:18:26 +02:00