]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: sja1105: Fix missing unlock on error in sk_buff()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 17 Jul 2019 06:29:56 +0000 (06:29 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 18 Jul 2019 23:32:39 +0000 (16:32 -0700)
commit0cb22877f9270f766c4b100c1c3dcc470ea4fb5c
treeecc1c281af6ed858f4f7826eef7210b65cf8689c
parent38f88aece2d0b54c4f1745c57c0239710a1c49e3
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: e03baf195b2e ("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>
net/dsa/tag_sja1105.c