]> git.baikalelectronics.ru Git - kernel.git/commit
amd-xgbe: Check for successful buffer allocation before use
authorTom Lendacky <thomas.lendacky@amd.com>
Mon, 5 Oct 2015 15:51:03 +0000 (10:51 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 6 Oct 2015 06:30:51 +0000 (23:30 -0700)
commit9dbefce2bc9817a518b5b455cd1f40c2fcaa13d6
tree0f660f069392b98eac4e8cf2db9bdc80ce1a3e18
parentd531e35368d401c8465213dcfc2f8f93bcbad5b5
amd-xgbe: Check for successful buffer allocation before use

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 <thomas.lendacky@amd.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/amd/xgbe/xgbe-debugfs.c