diff options
author | Andrew Goodbody <andrew.goodbody@linaro.org> | 2025-08-01 11:39:15 +0100 |
---|---|---|
committer | Michael Trimarchi <michael@amarulasolutions.com> | 2025-08-03 10:20:16 +0200 |
commit | 56372f834c717402882112ba888943421020b6d5 (patch) | |
tree | 02755c990821560b500f8ab86bc38d4f57104005 /drivers/net/dwc_eth_xgmac_socfpga.c | |
parent | 4003ed1c1ecfc88092a1d3c65bf432ab7c2ea15f (diff) |
mtd: nand: sunxi: Free allocated memory on errors
Add kfree calls on error paths for memory that was allocated. This will
prevent memory leaks.
This issue found by Smatch.
Signed-off-by: Andrew Goodbody <andrew.goodbody@linaro.org>
Reviewed-By: Michael Trimarchi <michael@amarulasolutions.com>
Diffstat (limited to 'drivers/net/dwc_eth_xgmac_socfpga.c')
0 files changed, 0 insertions, 0 deletions