Skip to content

Commit beb5842

Browse files
committed
Merge branch 'mac80211'
Phoebe Buckheister says: ==================== mac802154: llsec oversights Fixes an unlock operation not matching a previous lock operation in an unlikely error path and removes a redundant check. ==================== Signed-off-by: David S. Miller <davem@davemloft.net>
2 parents 68bc74f + 62e9c11 commit beb5842

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/mac802154/llsec.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -773,10 +773,10 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb)
773773
rc = llsec_do_encrypt(skb, sec, &hdr, key);
774774
llsec_key_put(key);
775775

776-
return rc < 0 ? rc : 0;
776+
return rc;
777777

778778
fail_read:
779-
read_unlock(&sec->lock);
779+
read_unlock_bh(&sec->lock);
780780
fail:
781781
rcu_read_unlock();
782782
return rc;

0 commit comments

Comments
 (0)