renesas: missing unlock on error path
Subsystems (4)
PATCH 1/1 renesas: missing unlock on error path
We need to unlock before returning here.
Fixes a0d2f20650e8 ('Renesas Ethernet AVB PTP clock driver')
Signed-off-by Dan Carpenter <[email protected]>
drivers/net/ethernet/renesas/ravb_ptp.c +3 -1
@@ -116,8 +116,10 @@ static int ravb_ptp_adjfreq(struct ptp_clock_info *ptp, s32 ppb) priv->ptp.current_addend = addend; gccr =ravb_read (ndev,GCCR ); -if (gccr &GCCR_LTI ) +if (gccr &GCCR_LTI ) { +spin_unlock_irqrestore (&priv->lock, flags);return -EBUSY ; + }ravb_write (ndev, addend >I_TIV ,GTI );ravb_write (ndev, gccr |GCCR_LTI ,GCCR );
Hello.
Quoted 1 line · Dan Carpenter
We need to unlock before returning here.
Indeed. Sorry about missing that.
Quoted 2 lines
Fixes a0d2f20650e8 ('Renesas Ethernet AVB PTP clock driver')Signed-off-by Dan Carpenter <[email protected]>
Acked-by Sergei Shtylyov <[email protected]>
WBR, Sergei
From: Dan Carpenter <[email protected]>
Date: Wed, 24 Jun 2015 17:32:54 +0300
Quoted 4 lines
We need to unlock before returning here.
Fixes a0d2f20650e8 ('Renesas Ethernet AVB PTP clock driver')Signed-off-by Dan Carpenter <[email protected]>
Applied.