diff options
author | 2022-12-08 21:35:52 +0800 | |
---|---|---|
committer | 2023-01-09 14:02:39 -0800 | |
commit | 40543b3d9d2c13227ecd3aa90a713c201d1d7f09 (patch) | |
tree | a0d7cc5cccee6d2b0c1af9bad35b1f82c29a51fe /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ice: Fix potential memory leak in ice_gnss_tty_write() (diff) | |
download | wireguard-linux-40543b3d9d2c13227ecd3aa90a713c201d1d7f09.tar.xz wireguard-linux-40543b3d9d2c13227ecd3aa90a713c201d1d7f09.zip |
ice: Add check for kzalloc
Add the check for the return value of kzalloc in order to avoid
NULL pointer dereference.
Moreover, use the goto-label to share the clean code.
Fixes: d6b98c8d242a ("ice: add write functionality for GNSS TTY")
Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn>
Reviewed-by: Jiri Pirko <jiri@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