mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 11:11:45 -04:00
can: ti_hecc: Fix uninitialized spinlock in probe
In ti_hecc_probe(), the spinlock priv->mbx_lock is not inited, causing a spinlock lockup BUG. Acked-by: Anant Gole <[email protected]> Signed-off-by: Abhilash K V <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
6f288cc52f
commit
86ad47fff9
1 changed files with 1 additions and 0 deletions
|
|
@ -923,6 +923,7 @@ static int ti_hecc_probe(struct platform_device *pdev)
|
|||
priv->can.do_get_state = ti_hecc_get_state;
|
||||
priv->can.ctrlmode_supported = CAN_CTRLMODE_3_SAMPLES;
|
||||
|
||||
spin_lock_init(&priv->mbx_lock);
|
||||
ndev->irq = irq->start;
|
||||
ndev->flags |= IFF_ECHO;
|
||||
platform_set_drvdata(pdev, ndev);
|
||||
|
|
|
|||
Loading…
Reference in a new issue