Jiri Slaby
38237fd2be
USB: serial/usb_wwan, fix tty NULL dereference
tty_port_tty_get may return without any problems NULL. Handle this
case and do not oops in usb_wwan_indat_callback by dereferencing it.
The oops:
Unable to handle kernel paging request for data at address 0x000000d8
Faulting instruction address: 0xc0175b3c
Oops: Kernel access of bad area, sig: 11 [#1]
PowerPC 40x Platform
last sysfs file:
/sys/devices/pci0000:00/0000:00:00.0/0000:01:00.0/0000:02:09.2/usb1/idVendor
Modules linked in:
NIP: c0175b3c LR: c0175e7c CTR: c0215c90
REGS: c77f7d50 TRAP: 0300 Not tainted (2.6.37-rc5)
MSR: 00021030 <ME,CE,IR,DR> CR: 88482028 XER: 2000005f
DEAR: 000000d8, ESR: 00000000
TASK = c7141b90[1149] 'wvdial' THREAD: c2750000
GPR00: 00021030 c77f7e00 c7141b90 00000000 0000000e 00000000 0000000e c0410680
GPR08: c683db00 00000000 00000001 c03c81f8 88482028 10073ef4 ffffffb9 ffffff94
GPR16: 00000000 fde036c0 00200200 00100100 00000001 ffffff8d c34fabcc 00000000
GPR24: c71120d4 00000000 00000000 0000000e 00021030 00000000 00000000 0000000e
NIP [c0175b3c] tty_buffer_request_room+0x2c/0x194
LR [c0175e7c] tty_insert_flip_string_fixed_flag+0x3c/0xb0
Call Trace:
[c77f7e00] [00000003] 0x3 (unreliable)
[c77f7e30] [c0175e7c] tty_insert_flip_string_fixed_flag+0x3c/0xb0
[c77f7e60] [c0215df4] usb_wwan_indat_callback+0x164/0x170
...
References: https://bugzilla.kernel.org/show_bug.cgi?id=24582
Cc: Amit Shah <amitshah@gmx.net>
Cc: baoyb <baoyb@avit.org.cn>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
2011-02-17 10:30:25 -08:00
..
2011-02-15 15:25:48 -05:00
2011-01-28 03:16:20 -05:00
2011-01-24 13:17:06 -08:00
2011-01-25 20:50:07 +01:00
2011-02-11 16:12:20 -08:00
2011-02-09 14:22:37 +01:00
2011-02-11 17:34:47 +11:00
2011-01-26 10:50:04 +10:00
2011-02-14 02:40:46 -08:00
2011-02-10 14:41:49 +01:00
2011-02-15 04:20:57 +01:00
2011-02-11 16:12:20 -08:00
2011-02-15 09:18:51 +10:00
2011-02-09 13:45:52 -08:00
2011-01-25 05:57:34 +10:00
2011-02-03 11:19:26 -08:00
2011-02-15 09:40:27 -08:00
2011-02-09 13:56:53 -08:00
2011-01-26 10:49:58 +10:00
2011-02-08 11:49:02 +11:00
2011-02-02 17:52:19 -08:00
2011-01-31 10:53:37 +00:00
2011-01-29 18:27:13 +02:00
2011-02-15 17:51:18 -08:00
2011-01-26 10:49:59 +10:00
2011-02-15 19:06:31 +11:00
2011-01-31 12:59:34 +10:00
2011-01-26 10:50:00 +10:00
2011-01-22 20:32:37 -08:00
2011-02-14 10:10:07 -08:00
2011-02-04 13:20:01 -08:00
2011-01-24 11:52:33 -06:00
2011-02-08 12:03:54 -08:00
2011-02-10 12:19:23 -08:00
2011-02-15 17:51:18 -08:00
2011-02-17 10:30:25 -08:00
2011-02-01 16:48:46 +02:00
2011-01-26 10:50:06 +10:00
2011-02-11 16:12:20 -08:00
2011-02-08 15:07:45 +10:00