Re: [PATCH] amd-xgbe: Check for successful buffer allocation before use

2015-10-05 Thread David Miller
From: Tom Lendacky Date: Mon, 5 Oct 2015 10:51:03 -0500 > The kasprintf function can return NULL if the allocation fails. Check for > successful allocation before attempting to use the returned buffer. > > Signed-off-by: Tom Lendacky Applied, thanks. -- To unsubscribe from this list: send the

[PATCH] amd-xgbe: Check for successful buffer allocation before use

2015-10-05 Thread Tom Lendacky
The kasprintf function can return NULL if the allocation fails. Check for successful allocation before attempting to use the returned buffer. Signed-off-by: Tom Lendacky --- drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c |3 +++ 1 file changed, 3 insertions(+) diff --git a/drivers/net/etherne