Files
linux/drivers/net/ethernet/intel/ice
Jiasheng Jiang 40543b3d9d 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: d6b98c8d24 ("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>
2023-01-09 14:02:39 -08:00
..
2022-03-11 08:28:27 -08:00
2023-01-09 14:02:39 -08:00
2022-10-27 13:23:43 +02:00
2022-08-18 08:26:11 -07:00
2022-08-18 08:26:11 -07:00
2022-11-14 10:44:38 +00:00
2022-11-14 10:44:38 +00:00