Re: [PATCH v6 net-next 02/13] net: ethernet: ti: cpsw: allow untagged traffic on host port

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



From: Grygorii Strashko <grygorii.strashko@xxxxxx>
Date: Sat, 9 Nov 2019 17:15:14 +0200

> +	ale->p0_untag_vid_mask =
> +		devm_kmalloc_array(params->dev, BITS_TO_LONGS(VLAN_N_VID),
> +				   sizeof(unsigned long),
> +				   GFP_KERNEL);
> +

devm_kmalloc_array() can fail and you must check the return value and
cleanup with -ENOMEM if necessary.



[Index of Archives]     [Linux Arm (vger)]     [ARM Kernel]     [ARM MSM]     [Linux Tegra]     [Linux WPAN Networking]     [Linux Wireless Networking]     [Maemo Users]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite Trails]     [Linux Kernel]     [Linux SCSI]

  Powered by Linux