net: dsa: sja1105: Release lock in error case
Subsystems (3)
PATCH 1/1 net: dsa: sja1105: Release lock in error case
This patch adds release of unlock in fail case.
Issue identified by coccicheck
Signed-off-by Hariprasad Kelam <[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);
Signature · 1 line
2.7.4
https://patchwork.ozlabs.org/patch/1133135/
This has been fixed.
Quoted 22 lines · Hariprasad Kelam
This patch adds release of unlock in fail case.
Issue identified by coccicheck
Signed-off-by Hariprasad Kelam <[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);