mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-06-26 16:41:25 +00:00
mac80211: remove BUG_ON usage
These BUG_ON statements should never trigger, but in the unlikely event that somebody does manage don't stop everything but simply exit the code path with an error. Leave the one BUG_ON where changing it would result in a NULL pointer dereference. Signed-off-by: Johannes Berg <johannes.berg@intel.com>
This commit is contained in:
parent
2fd0511556
commit
8c5bb1fad0
3 changed files with 9 additions and 6 deletions
|
@ -287,8 +287,10 @@ static void mesh_path_move_to_queue(struct mesh_path *gate_mpath,
|
|||
struct sk_buff_head failq;
|
||||
unsigned long flags;
|
||||
|
||||
BUG_ON(gate_mpath == from_mpath);
|
||||
BUG_ON(!gate_mpath->next_hop);
|
||||
if (WARN_ON(gate_mpath == from_mpath))
|
||||
return;
|
||||
if (WARN_ON(!gate_mpath->next_hop))
|
||||
return;
|
||||
|
||||
__skb_queue_head_init(&failq);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue