diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2025-03-12 11:31:40 +0300 |
---|---|---|
committer | Johannes Berg <johannes.berg@intel.com> | 2025-03-12 12:41:56 +0300 |
commit | 54be64fdf3ba6dbad2f5c48e466e1db43ad74bca (patch) | |
tree | 215f20a8ec78a5a16c20fa2ed118d1551e62f3a3 /tools/perf/scripts/python/syscall-counts.py | |
parent | 34670beb481e5e1a40448fabd312d17a1fbf0a73 (diff) | |
download | linux-54be64fdf3ba6dbad2f5c48e466e1db43ad74bca.tar.xz |
wifi: iwlwifi: Fix uninitialized variable with __free()
Pointers declared with the __free(kfree) attribute need to be initialized
because they will be passed to kfree() on every return path. There are
two return statement before the "cmd" pointer is initialized so this
leads to an uninitialized variable bug.
Fixes: d1e879ec600f ("wifi: iwlwifi: add iwlmld sub-driver")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Acked-by: Miri Korenblit <miriam.rachel.korenblit@intel.com>
Link: https://patch.msgid.link/f7c17a7f-f173-43bf-bc39-316b8adde349@stanley.mountain
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions