commit | 12aece8b01507a2d357a1861f470e83621fbb6f2 | [log] [tgz] |
---|---|---|
author | Zheng Wang <zyytlz.wz@163.com> | Sat Oct 01 01:57:25 2022 +0800 |
committer | David S. Miller <davem@davemloft.net> | Mon Oct 03 12:47:42 2022 +0100 |
tree | bb9bc5292f1be8f5ea9513c2ba198c481e905968 | |
parent | b43f9acbb8942b05252be83ac25a81cec70cc192 [diff] |
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: fd3040b9394c ("net: ethernet: Add driver for Sunplus SP7021") Signed-off-by: Zheng Wang <zyytlz.wz@163.com> Signed-off-by: David S. Miller <davem@davemloft.net>