lkml.org 
[lkml]   [2019]   [Nov]   [12]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
SubjectRe: [PATCH v6 net-next 02/13] net: ethernet: ti: cpsw: allow untagged traffic on host port
From
From: Grygorii Strashko <grygorii.strashko@ti.com>
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.

\
 
 \ /
  Last update: 2019-11-12 21:13    [W:0.166 / U:0.348 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site