diff options
author | 2022-12-07 08:55:02 +0000 | |
---|---|---|
committer | 2023-01-09 14:02:39 -0800 | |
commit | f58985620f55580a07d40062c4115d8c9cf6ae27 (patch) | |
tree | a07bb191085161c2bd3c7115a3ef4e7a957961c8 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | af_unix: selftest: Fix the size of the parameter to connect() (diff) | |
download | wireguard-linux-f58985620f55580a07d40062c4115d8c9cf6ae27.tar.xz wireguard-linux-f58985620f55580a07d40062c4115d8c9cf6ae27.zip |
ice: Fix potential memory leak in ice_gnss_tty_write()
The ice_gnss_tty_write() return directly if the write_buf alloc failed,
leaking the cmd_buf.
Fix by free cmd_buf if write_buf alloc failed.
Fixes: d6b98c8d242a ("ice: add write functionality for GNSS TTY")
Signed-off-by: Yuan Can <yuancan@huawei.com>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Tested-by: Gurucharan G <gurucharanx.g@intel.com> (A Contingent worker at Intel)
Signed-off-by: Tony Nguyen <anthony.l.nguyen@intel.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions