Commit 5102e237 authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

renesas: missing unlock on error path

We need to unlock before returning here.

Fixes: a0d2f206

 ('Renesas Ethernet AVB PTP clock driver')
Signed-off-by: default avatarDan Carpenter <>
Acked-by: default avatarSergei Shtylyov <>
Signed-off-by: default avatarDavid S. Miller <>
parent be35ffa3
......@@ -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 & GTI_TIV, GTI);
ravb_write(ndev, gccr | GCCR_LTI, GCCR);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment