Skip to content

Commit

Permalink
Merge branch 'mac80211'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller committed May 22, 2014
2 parents 68bc74f + 62e9c11 commit beb5842
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/mac802154/llsec.c
Original file line number Diff line number Diff line change
Expand Up @@ -773,10 +773,10 @@ int mac802154_llsec_encrypt(struct mac802154_llsec *sec, struct sk_buff *skb)
rc = llsec_do_encrypt(skb, sec, &hdr, key);
llsec_key_put(key);

return rc < 0 ? rc : 0;
return rc;

fail_read:
read_unlock(&sec->lock);
read_unlock_bh(&sec->lock);
fail:
rcu_read_unlock();
return rc;
Expand Down

0 comments on commit beb5842

Please sign in to comment.