Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 03147dfc authored by Johannes Berg's avatar Johannes Berg Committed by John W. Linville
Browse files

mac80211: fix kmalloc vs. net_ratelimit



The "goto end;" part definitely must not be rate limited.

Signed-off-by: default avatarJohannes Berg <johannes@sipsolutions.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 53b3f8e4
Loading
Loading
Loading
Loading
+4 −3
Original line number Diff line number Diff line
@@ -1116,7 +1116,8 @@ static void ieee80211_sta_process_addba_request(struct net_device *dev,
	/* prepare reordering buffer */
	tid_agg_rx->reorder_buf =
		kmalloc(buf_size * sizeof(struct sk_buf *), GFP_ATOMIC);
	if ((!tid_agg_rx->reorder_buf) && net_ratelimit()) {
	if (!tid_agg_rx->reorder_buf) {
		if (net_ratelimit())
			printk(KERN_ERR "can not allocate reordering buffer "
			       "to tid %d\n", tid);
		goto end;