diff options
author | Moritz Fischer <mdf@kernel.org> | 2018-05-04 10:18:33 -0700 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2018-05-07 23:30:03 -0400 |
commit | abcd3d6fc640aff48b17900734eff134f27fdf2a (patch) | |
tree | b6d7bb613de4014751562c425a72ef1542a009a0 /drivers/net/wireless/ath/carl9170/debug.c | |
parent | 1751eb42ddb56b1e0a28ade5c5f19b7961a6f0c2 (diff) |
net: nixge: Fix error path for obtaining mac address
Fix issue where nixge_get_nvmem_address() returns a non-NULL
return value on a failed nvmem_cell_get() that causes an invalid
access when error value encoded in pointer is dereferenced.
Furthermore ensure that buffer allocated by nvmem_cell_read()
actually gets kfreed() if the function succeeds.
Fixes commit 492caffa8a1a ("net: ethernet: nixge: Add support for
National Instruments XGE netdev")
Reported-by: Alex Williams <alex.williams@ni.com>
Signed-off-by: Moritz Fischer <mdf@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wireless/ath/carl9170/debug.c')
0 files changed, 0 insertions, 0 deletions