net: dsa: sja1105: Fix missing unlock on error in sk_buff()
Subsystems (4)
PATCH 1/1 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 f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX timestamping")
Signed-off-by Wei Yongjun <[email protected]>
--- net/dsa/tag_sja1105.c | 1 + 1 file changed, 1 insertion(+)
net/dsa/tag_sja1105.c +1 -0
@@ -216,6 +216,7 @@ static struct sk_buffif (!skb) {dev_err_ratelimited (dp->ds->dev,"Failed to copy stampable skb\n" ); +spin_unlock (&sp->data->meta_lock);return NULL ; }sja1105_transfer_meta (skb, meta);
Quoted 7 lines · Wei Yongjun
Add the missing unlock before return from function
sk_buff()in the error handling case.Fixes f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX timestamping")Signed-off-by Wei Yongjun <[email protected]>---
Reviewed-by Vladimir Oltean <[email protected]>
Quoted 18 lines
net/dsa/tag_sja1105.c | 1 + 1 file changed, 1 insertion(+)net/dsa/tag_sja1105.c +1
-0@@ -216,6 +216,7 @@ static struct sk_buffif (!skb) {dev_err_ratelimited (dp->ds->dev,"Failed to copy stampable skb\n" ); +spin_unlock (&sp->data->meta_lock);return NULL ; }sja1105_transfer_meta (skb, meta);
Quoted 5 lines · Wei Yongjun
Add the missing unlock before return from function
sk_buff()in the error handling case.Fixes f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX timestamping")Signed-off-by Wei Yongjun <[email protected]>
Reviewed-by Vivien Didelot <[email protected]>
Quoted 5 lines · Wei Yongjun
Add the missing unlock before return from function
sk_buff()in the error handling case.Fixes f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX timestamping")Signed-off-by Wei Yongjun <[email protected]>
Reviewed-by Florian Fainelli <[email protected]>
Signature · 1 line
Florian
From: Wei Yongjun <[email protected]>
Date: Wed, 17 Jul 2019 06:29:56 +0000
Quoted 5 lines
Add the missing unlock before return from function
sk_buff()in the error handling case.Fixes f3097be21bf1 ("net: dsa: sja1105: Add a state machine for RX timestamping")Signed-off-by Wei Yongjun <[email protected]>
Applied.