Skip to content

Commit

Permalink
[PATCH] p54: Make filter configuration atomic
Browse files Browse the repository at this point in the history
p54_set_filter is now called from configure_filter, which is not
allowed to sleep. The filter configuration packet allocation should be
atomic now.

Thanks to Dmitry Torokhov <dtor@insightbb.com> for reporting this bug.

Signed-off-by: Michael Wu <flamingice@sourmilk.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Michael Wu authored and John W. Linville committed Oct 18, 2007
1 parent 4771afb commit ba8007c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/p54common.c
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ static int p54_set_filter(struct ieee80211_hw *dev, u16 filter_type,
struct p54_tx_control_filter *filter;

hdr = kzalloc(sizeof(*hdr) + sizeof(*filter) +
priv->tx_hdr_len, GFP_KERNEL);
priv->tx_hdr_len, GFP_ATOMIC);
if (!hdr)
return -ENOMEM;

Expand Down

0 comments on commit ba8007c

Please sign in to comment.