mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-31 04:01:48 -04:00
6lowpan: ndisc: fix double read unlock
This patch removes a double unlock case to accessing neighbour private data. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Alexander Aring <[email protected]> Reviewed-by: Stefan Schmidt <[email protected]> Signed-off-by: Marcel Holtmann <[email protected]>
This commit is contained in:
parent
a4770e1117
commit
929946a471
1 changed files with 2 additions and 1 deletions
|
|
@ -135,8 +135,9 @@ static int lowpan_ndisc_opt_addr_space(const struct net_device *dev,
|
|||
read_unlock_bh(&neigh->lock);
|
||||
addr_space += __ndisc_opt_addr_space(IEEE802154_SHORT_ADDR_LEN, 0);
|
||||
*ha = ha_buf;
|
||||
} else {
|
||||
read_unlock_bh(&neigh->lock);
|
||||
}
|
||||
read_unlock_bh(&neigh->lock);
|
||||
break;
|
||||
case NDISC_NEIGHBOUR_ADVERTISEMENT:
|
||||
case NDISC_NEIGHBOUR_SOLICITATION:
|
||||
|
|
|
|||
Loading…
Reference in a new issue