[patch] mac80211: check for allocation failure in debugfs code
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 f62cd0e13c58..4689353aa263 10
Re: [patch] mac80211: check for allocation failure in debugfs code
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