Skip to content
Commit 12aece8b authored by Zheng Wang's avatar Zheng Wang Committed by David S. Miller
Browse files

eth: sp7021: fix use after free bug in spl2sw_nvmem_get_mac_address

This frees "mac" and tries to display its address as part of the error
message on the next line.  Swap the order.

Fixes: fd3040b9

 ("net: ethernet: Add driver for Sunplus SP7021")
Signed-off-by: default avatarZheng Wang <zyytlz.wz@163.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b43f9acb
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment