commit | 90ca6956d3834db4060f87700e2fcbb699c4e4fd | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@linaro.org> | Thu Mar 21 17:42:12 2024 +0300 |
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | Wed Apr 03 09:15:18 2024 -0700 |
tree | bff0a206bdcf36e1d1acfcb8931c9aefb32aa455 | |
parent | 0a6380cb4c6b5c1d6dad226ba3130f9090f0ccea [diff] |
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>