From: Phoebe Buckheister Date: Tue, 20 May 2014 11:14:22 +0000 (+0200) Subject: mac802154: llsec: fix incorrect lock pairing X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6f3eabcd041aa062cfabd2fc62194a33b507f51c;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git mac802154: llsec: fix incorrect lock pairing In encrypt, sec->lock is taken with read_lock_bh, so in the error path, we must read_unlock_bh. Signed-off-by: Phoebe Buckheister Reported-by: Dan Carpenter Signed-off-by: David S. Miller --- diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c index a83674edaafd..6edcb20c2e70 100644 --- a/net/mac802154/llsec.c +++ b/net/mac802154/llsec.c @@ -776,7 +776,7 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb) return rc < 0 ? rc : 0; fail_read: - read_unlock(&sec->lock); + read_unlock_bh(&sec->lock); fail: rcu_read_unlock(); return rc;