Skip to contentSkip to conversation

p54: Make filter configuration atomic

PATCH New Michael Wu 1 participant 1 message Oct 14, 2007 Networking drivers (wireless)

lore
Share & tools
lore

Michael Wu

author
#0 lore raw

PATCH 1/1 p54: Make filter configuration atomic

From: Michael Wu <[email protected]>

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 <[email protected]> for reporting this bug.

---

 drivers/net/wireless/p54common.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
drivers/net/wireless/p54common.c +1 -1
index 2c63cf0..1437db0 100644
@@ -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;