summaryrefslogtreecommitdiff
path: root/include/linux/flex_array.h
diff options
context:
space:
mode:
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>2017-08-07 00:37:01 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-10-02 22:46:35 +0300
commit54902349ee95045b67e2f0c39b75f5418540064b (patch)
treeb66c43f8fbad2f03762a63cc2c9ef611b07ebdd9 /include/linux/flex_array.h
parent5872866e166c38ad1c1028fb9cf7dd756c0ef43e (diff)
downloadlinux-54902349ee95045b67e2f0c39b75f5418540064b.tar.xz
i40e: Fix a potential NULL pointer dereference
If 'kzalloc()' fails, a NULL pointer will be dereferenced. Return an error code (-ENOMEM) instead. Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include/linux/flex_array.h')
0 files changed, 0 insertions, 0 deletions