diff options
author | Dan Carpenter <dan.carpenter@linaro.org> | 2024-03-21 17:42:12 +0300 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2024-04-03 19:15:18 +0300 |
commit | 90ca6956d3834db4060f87700e2fcbb699c4e4fd (patch) | |
tree | bff0a206bdcf36e1d1acfcb8931c9aefb32aa455 /tools/perf/scripts/python | |
parent | 0a6380cb4c6b5c1d6dad226ba3130f9090f0ccea (diff) | |
download | linux-90ca6956d3834db4060f87700e2fcbb699c4e4fd.tar.xz |
ice: Fix freeing uninitialized pointers
Automatically cleaned up pointers need to be initialized before exiting
their scope. In this case, they need to be initialized to NULL before
any return statement.
Fixes: 90f821d72e11 ("ice: avoid unnecessary devm_ usage")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Jiri Pirko <jiri@nvidia.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions