]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: dsa: mv88e6xxx: lock mutex when freeing IRQs
authorVivien Didelot <vivien.didelot@savoirfairelinux.com>
Tue, 26 Sep 2017 18:57:21 +0000 (14:57 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 12 Oct 2017 09:56:06 +0000 (11:56 +0200)
commitc2d86cecc510ba347fa7fdee4c0292b2f3ced772
treed3e0c9da87d00f3dae7d61fe2b12d4bceee9773f
parentb37fd765a4ef807725c403976e7f402480030c01
net: dsa: mv88e6xxx: lock mutex when freeing IRQs

[ Upstream commit b32ca44a88def4bf92626d8777494c6f14638c42 ]

mv88e6xxx_g2_irq_free locks the registers mutex, but not
mv88e6xxx_g1_irq_free, which results in a stack trace from
assert_reg_lock when unloading the mv88e6xxx module. Fix this.

Fixes: 3460a5770ce9 ("net: dsa: mv88e6xxx: Mask g1 interrupts and free interrupt")
Signed-off-by: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/net/dsa/mv88e6xxx/chip.c