Re: [patch] mac80211: check for allocation failure in debugfs code

2017-02-08 Thread Johannes Berg
On Tue, 2017-02-07 at 16:20 +0300, Dan Carpenter wrote: > kmalloc() can fail.  Also let's move the allocation out of the > declaration block so it's easier to read. > Applied, thanks. johannes

[patch] mac80211: check for allocation failure in debugfs code

2017-02-07 Thread Dan Carpenter
kmalloc() can fail. Also let's move the allocation out of the declaration block so it's easier to read. Fixes: 4a5eccaa9350 ("mac80211: Show pending txqlen in debugfs.") Signed-off-by: Dan Carpenter diff --git a/net/mac80211/debugfs.c b/net/mac80211/debugfs.c index