diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2022-08-25 16:17:19 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-08-27 05:47:36 +0300 |
commit | 931d0a8b201a46aedb7767087438ea9e4467b6cd (patch) | |
tree | a41511abf63f7e3dea1a30904fec2d81afdc813c /net/netlabel | |
parent | 7dea06dbb097c7cbf6fd930960c32944829468a9 (diff) | |
download | linux-931d0a8b201a46aedb7767087438ea9e4467b6cd.tar.xz |
net: fman: memac: Uninitialized variable on error path
The "fixed_link" is only allocated sometimes but it's freed
unconditionally in the error handling. Set it to NULL so we don't free
uninitialized data.
Fixes: 9ea4742a55ca ("net: fman: Configure fixed link in memac_initialization")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Sean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/Ywd2X6gdKmTfYBxD@kili
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/netlabel')
0 files changed, 0 insertions, 0 deletions