diff options
author | Jiasheng Jiang <jiasheng@iscas.ac.cn> | 2022-12-08 21:35:52 +0800 |
---|---|---|
committer | Tony Nguyen <anthony.l.nguyen@intel.com> | 2023-01-09 14:02:39 -0800 |
commit | 40543b3d9d2c13227ecd3aa90a713c201d1d7f09 (patch) | |
tree | a0d7cc5cccee6d2b0c1af9bad35b1f82c29a51fe /tools/testing/selftests/net/af_unix/test_unix_oob.c | |
parent | f58985620f55580a07d40062c4115d8c9cf6ae27 (diff) |
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/testing/selftests/net/af_unix/test_unix_oob.c')
0 files changed, 0 insertions, 0 deletions