diff options
| author | Abdun Nihaal <nihaal@cse.iitm.ac.in> | 2026-06-20 12:22:39 +0530 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2026-07-06 14:11:06 +0200 |
| commit | 0d388f62031dbabcba0f44bb91b59f10e88cac17 (patch) | |
| tree | b9a6edc51304d7144ae1594874e707e92f134baf /tools/perf/scripts/python/stackcollapse.py | |
| parent | edf0730be33696a1bd142792830d392129e495cc (diff) | |
wifi: ipw2100: fix potential memory leak in ipw2100_pci_init_one()
The memory allocated in the ipw2100_alloc_device() function is not freed
in some of the error paths in ipw2100_pci_init_one(). Fix that by
converting the direct return into a goto to the error path return.
The error path when pci_enable_device() fails cannot jump to fail, since
at this point priv is not set, so perform error handling inline.
Fixes: 2c86c275015c ("Add ipw2100 wireless driver.")
Signed-off-by: Abdun Nihaal <nihaal@cse.iitm.ac.in>
Link: https://patch.msgid.link/20260620065242.93798-1-nihaal@cse.iitm.ac.in
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions
