Breno Leitao
137ee2f5d1
jsm: fixing error if the driver fails to load
...
Currently if the driver fails to register on port, the kernel
crashes with the following stack:
cpu 0x1: Vector: 300 (Data Access) at [c0000000e0303090]
pc: c00000000039aa74: .__mutex_lock_slowpath+0x44/0x10c
lr: c00000000039aa58: .__mutex_lock_slowpath+0x28/0x10c
[c0000000e03033c0] c00000000026b074 .uart_remove_one_port+0xbc/0x16c
[c0000000e0303460] d0000000000e0554 .jsm_remove_uart_port+0x8c/0x10c [jsm]
[c0000000e03034f0] d0000000000dc034 .jsm_remove_one+0x34/0x108 [jsm]
[c0000000e0303590] c0000000001f4aa0 .pci_device_remove+0x48/0x74
...
This patch just fixes the code flow to abort the load when an
error is detected.
Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com >
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de >
2010-03-02 14:43:24 -08:00
..
2009-09-24 17:01:22 +10:00
2010-03-02 14:43:24 -08:00
2008-05-01 08:04:00 -07:00
2009-05-29 08:40:02 -07:00
2010-03-02 14:43:10 -08:00
2010-01-20 15:03:27 -08:00
2010-03-02 14:43:07 -08:00
2009-09-19 13:13:19 -07:00
2010-01-11 15:39:21 +00:00
2010-03-02 14:43:07 -08:00
2008-07-20 17:12:36 -07:00
2009-09-19 13:13:31 -07:00
2010-02-18 17:29:42 +00:00
2009-11-13 13:25:06 -08:00
2009-11-04 08:44:54 -08:00
2010-03-02 14:43:08 -08:00
2010-03-02 14:43:19 -08:00
2010-03-02 14:43:18 -08:00
2010-03-02 14:43:06 -08:00
2010-03-02 14:43:06 -08:00
2009-09-19 13:13:28 -07:00
2009-08-31 18:38:16 +02:00
2009-04-07 08:44:05 -07:00
2009-09-19 13:13:28 -07:00
2010-03-02 14:43:22 -08:00
2010-03-02 14:43:10 -08:00
2010-03-02 14:43:22 -08:00
2009-12-15 08:53:27 -08:00
2009-09-19 13:13:31 -07:00
2010-03-02 14:43:21 -08:00
2008-04-30 08:29:47 -07:00
2009-09-19 13:13:28 -07:00
2009-11-04 08:44:54 -08:00
2009-09-23 07:39:43 -07:00
2009-12-04 11:45:30 +10:00
2010-02-16 22:30:03 -07:00
2009-09-19 13:13:28 -07:00
2010-03-02 14:43:11 -08:00
2009-06-22 11:32:25 -07:00
2009-09-19 13:13:28 -07:00
2009-09-19 13:13:28 -07:00
2009-09-19 13:13:28 -07:00
2009-11-30 16:38:44 -08:00
2010-02-27 18:31:02 +01:00
2010-02-27 18:31:02 +01:00
2009-09-19 13:13:31 -07:00
2009-12-15 08:53:25 -08:00
2009-12-01 01:33:51 +00:00
2009-07-30 23:56:41 +01:00
2009-12-01 01:33:51 +00:00
2009-12-01 01:33:51 +00:00
2009-12-01 01:33:51 +00:00
2009-07-30 23:56:41 +01:00
2009-09-28 18:06:16 +01:00
2009-12-01 01:33:51 +00:00
2009-12-01 01:33:51 +00:00
2009-09-19 13:13:31 -07:00
2009-09-19 13:13:28 -07:00
2010-01-20 15:03:29 -08:00
2010-02-27 16:18:30 -08:00
2009-09-19 13:13:31 -07:00
2009-09-19 13:13:31 -07:00
2009-10-01 16:11:15 -07:00
2010-01-15 08:33:20 +09:00
2010-02-08 11:47:44 +09:00
2009-09-19 13:13:28 -07:00
2009-11-24 14:09:56 -08:00
2009-11-24 14:09:56 -08:00
2009-11-24 14:09:56 -08:00
2009-11-24 14:09:56 -08:00
2009-11-24 14:12:50 -08:00
2009-11-24 14:09:56 -08:00
2010-03-02 14:43:11 -08:00
2009-06-11 08:51:06 -07:00
2010-02-02 18:11:22 -08:00
2009-12-11 11:24:52 -08:00
2009-09-19 13:13:31 -07:00
2009-09-19 13:13:31 -07:00