• Breno Leitao's avatar
    jsm: fixing error if the driver fails to load · 137ee2f5
    Breno Leitao authored
    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: default avatarBreno Leitao <leitao@linux.vnet.ibm.com>
    Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
    137ee2f5
Name
Last commit
Last update
..
cpm_uart Loading commit data...
jsm Loading commit data...
21285.c Loading commit data...
68328serial.c Loading commit data...
68328serial.h Loading commit data...
68360serial.c Loading commit data...
8250.c Loading commit data...
8250.h Loading commit data...
8250_accent.c Loading commit data...
8250_acorn.c Loading commit data...
8250_boca.c Loading commit data...
8250_early.c Loading commit data...
8250_exar_st16c554.c Loading commit data...
8250_fourport.c Loading commit data...
8250_gsc.c Loading commit data...
8250_hp300.c Loading commit data...
8250_hub6.c Loading commit data...
8250_mca.c Loading commit data...
8250_pci.c Loading commit data...
8250_pnp.c Loading commit data...
Kconfig Loading commit data...
Makefile Loading commit data...
amba-pl010.c Loading commit data...
amba-pl011.c Loading commit data...
apbuart.c Loading commit data...
apbuart.h Loading commit data...
atmel_serial.c Loading commit data...
bcm63xx_uart.c Loading commit data...
bfin_5xx.c Loading commit data...
bfin_sport_uart.c Loading commit data...
bfin_sport_uart.h Loading commit data...
clps711x.c Loading commit data...
crisv10.c Loading commit data...
crisv10.h Loading commit data...
dz.c Loading commit data...
dz.h Loading commit data...
icom.c Loading commit data...
icom.h Loading commit data...
imx.c Loading commit data...
ioc3_serial.c Loading commit data...
ioc4_serial.c Loading commit data...
ip22zilog.c Loading commit data...
ip22zilog.h Loading commit data...
kgdboc.c Loading commit data...
m32r_sio.c Loading commit data...
m32r_sio.h Loading commit data...
m32r_sio_reg.h Loading commit data...
max3100.c Loading commit data...
mcf.c Loading commit data...
mpc52xx_uart.c Loading commit data...
mpsc.c Loading commit data...
msm_serial.c Loading commit data...
msm_serial.h Loading commit data...
mux.c Loading commit data...
netx-serial.c Loading commit data...
nwpserial.c Loading commit data...
of_serial.c Loading commit data...
pmac_zilog.c Loading commit data...
pmac_zilog.h Loading commit data...
pnx8xxx_uart.c Loading commit data...
pxa.c Loading commit data...
s3c2400.c Loading commit data...
s3c2410.c Loading commit data...
s3c2412.c Loading commit data...
s3c2440.c Loading commit data...
s3c24a0.c Loading commit data...
s3c6400.c Loading commit data...
sa1100.c Loading commit data...
samsung.c Loading commit data...
samsung.h Loading commit data...
sb1250-duart.c Loading commit data...
sc26xx.c Loading commit data...
serial_core.c Loading commit data...
serial_cs.c Loading commit data...
serial_ks8695.c Loading commit data...
serial_lh7a40x.c Loading commit data...
serial_txx9.c Loading commit data...
sh-sci.c Loading commit data...
sh-sci.h Loading commit data...
sn_console.c Loading commit data...
suncore.c Loading commit data...
suncore.h Loading commit data...
sunhv.c Loading commit data...
sunsab.c Loading commit data...
sunsab.h Loading commit data...
sunsu.c Loading commit data...
sunzilog.c Loading commit data...
sunzilog.h Loading commit data...
timbuart.c Loading commit data...
timbuart.h Loading commit data...
uartlite.c Loading commit data...
ucc_uart.c Loading commit data...
vr41xx_siu.c Loading commit data...
zs.c Loading commit data...
zs.h Loading commit data...