diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-10-29 22:57:11 +0200 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2022-11-01 09:09:47 -0700 |
commit | 6c412da54c80a54b1a8b7f89677f6e82f0fabec4 (patch) | |
tree | 921e0c296155a55c7d336b749c9a9749f47e1faa /tools/perf/scripts/python/arm-cs-trace-disasm.py | |
parent | 363a5328f4b0517e59572118ccfb7c626d81dca9 (diff) |
sfc: Fix an error handling path in efx_pci_probe()
If an error occurs after the first kzalloc() the corresponding memory
allocation is never freed.
Add the missing kfree() in the error handling path, as already done in the
remove() function.
Fixes: 7e773594dada ("sfc: Separate efx_nic memory from net_device memory")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Link: https://lore.kernel.org/r/dc114193121c52c8fa3779e49bdd99d4b41344a9.1667077009.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/arm-cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions