Skip to content
Commit 931d0a8b authored by Dan Carpenter's avatar Dan Carpenter Committed by Jakub Kicinski
Browse files

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: 9ea4742a ("net: fman: Configure fixed link in memac_initialization")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: default avatarSean Anderson <sean.anderson@seco.com>
Link: https://lore.kernel.org/r/Ywd2X6gdKmTfYBxD@kili


Signed-off-by: default avatarJakub Kicinski <kuba@kernel.org>
parent 7dea06db
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment