From: Abhilash K V Date: Tue, 23 Aug 2011 03:05:57 +0000 (+0000) Subject: can: ti_hecc: Fix uninitialized spinlock in probe X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=86ad47fff97a9e416aadedfe68909b2d9143dc42;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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 Signed-off-by: Abhilash K V Signed-off-by: David S. Miller --- diff --git a/drivers/net/can/ti_hecc.c b/drivers/net/can/ti_hecc.c index 0b19a17d817..a81249246ec 100644 --- a/drivers/net/can/ti_hecc.c +++ b/drivers/net/can/ti_hecc.c @@ -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);