mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-19 05:04:20 +00:00
net: dsa: sja1105: Fix missing unlock on error in sk_buff()
Add the missing unlock before return from function sk_buff()
in the error handling case.
Fixes: f3097be21b
("net: dsa: sja1105: Add a state machine for RX timestamping")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Reviewed-by: Vladimir Oltean <olteanv@gmail.com>
Reviewed-by: Vivien Didelot <vivien.didelot@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
8ec1e90069
commit
008cfbaa3f
1 changed files with 1 additions and 0 deletions
|
@ -216,6 +216,7 @@ static struct sk_buff
|
||||||
if (!skb) {
|
if (!skb) {
|
||||||
dev_err_ratelimited(dp->ds->dev,
|
dev_err_ratelimited(dp->ds->dev,
|
||||||
"Failed to copy stampable skb\n");
|
"Failed to copy stampable skb\n");
|
||||||
|
spin_unlock(&sp->data->meta_lock);
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
sja1105_transfer_meta(skb, meta);
|
sja1105_transfer_meta(skb, meta);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue