Skip to content
Commit 1a59c9c5 authored by Wei Yongjun's avatar Wei Yongjun Committed by Jakub Kicinski
Browse files

net: mscc: ocelot: fix missing unlock on error in ocelot_hwstamp_set()



Add the missing mutex_unlock before return from function
ocelot_hwstamp_set() in the ocelot_setup_ptp_traps() error
handling case.

Fixes: 96ca08c0 ("net: mscc: ocelot: set up traps for PTP packets")
Reported-by: default avatarHulk Robot <hulkci@huawei.com>
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: default avatarVladimir Oltean <vladimir.oltean@nxp.com>
Link: https://lore.kernel.org/r/20211129151652.1165433-1-weiyongjun1@huawei.com


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 5fdc2333
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment