]> git.baikalelectronics.ru Git - kernel.git/commit
net: dsa: mv88e6xxx: missing unlock on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 14 Aug 2018 09:09:05 +0000 (12:09 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Aug 2018 17:08:07 +0000 (10:08 -0700)
commit05ab205f02ddcfcafeb9ffa6c840144040c7cd2b
tree444706ce20f999853c45c69908c647015914a0c6
parente3058f4db8749cadc84e678480677e7b725ebc62
net: dsa: mv88e6xxx: missing unlock on error path

We added a new error path, but we need to drop the lock before we return.

Fixes: 8e4785d47b6d ("net: dsa: mv88e6xxx: Cache the port cmode")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/dsa/mv88e6xxx/chip.c