diff options
Diffstat (limited to 'net/mac802154/llsec.c')
-rw-r--r-- | net/mac802154/llsec.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac802154/llsec.c b/net/mac802154/llsec.c index a83674edaafd..08d08cbf51f4 100644 --- a/net/mac802154/llsec.c +++ b/net/mac802154/llsec.c | |||
@@ -773,10 +773,10 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb) | |||
773 | rc = llsec_do_encrypt(skb, sec, &hdr, key); | 773 | rc = llsec_do_encrypt(skb, sec, &hdr, key); |
774 | llsec_key_put(key); | 774 | llsec_key_put(key); |
775 | 775 | ||
776 | return rc < 0 ? rc : 0; | 776 | return rc; |
777 | 777 | ||
778 | fail_read: | 778 | fail_read: |
779 | read_unlock(&sec->lock); | 779 | read_unlock_bh(&sec->lock); |
780 | fail: | 780 | fail: |
781 | rcu_read_unlock(); | 781 | rcu_read_unlock(); |
782 | return rc; | 782 | return rc; |