mirror of
https://git.proxmox.com/git/mirror_ubuntu-kernels.git
synced 2025-11-07 14:26:44 +00:00
In fjes_hw_setup, it allocates several memory and delay the deallocation
to the fjes_hw_exit in fjes_probe through the following call chain:
fjes_probe
|-> fjes_hw_init
|-> fjes_hw_setup
|-> fjes_hw_exit
However, when fjes_hw_setup fails, fjes_hw_exit won't be called and thus
all the resources allocated in fjes_hw_setup will be leaked. In this
patch, we free those resources in fjes_hw_setup and prevents such leaks.
Fixes:
|
||
|---|---|---|
| .. | ||
| fjes_debugfs.c | ||
| fjes_ethtool.c | ||
| fjes_hw.c | ||
| fjes_hw.h | ||
| fjes_main.c | ||
| fjes_regs.h | ||
| fjes_trace.c | ||
| fjes_trace.h | ||
| fjes.h | ||
| Makefile | ||