]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
i40e: Fix of memory leak and integer truncation in i40e_virtchnl.c
authorMartyna Szapar <martyna.szapar@intel.com>
Mon, 15 Apr 2019 21:43:07 +0000 (14:43 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 31 May 2019 13:43:14 +0000 (06:43 -0700)
commitc2d089a4aad52abe13b487b64016f3f36df0795a
tree3a58276a7a568c29c734a6c46d3bb908510fc313
parent36cd1815fd109860ec7681e41508146cd32d9b26
i40e: Fix of memory leak and integer truncation in i40e_virtchnl.c

[ Upstream commit 24474f2709af6729b9b1da1c5e160ab62e25e3a4 ]

Fixed possible memory leak in i40e_vc_add_cloud_filter function:
cfilter is being allocated and in some error conditions
the function returns without freeing the memory.

Fix of integer truncation from u16 (type of queue_id value) to u8
when calling i40e_vc_isvalid_queue_id function.

Signed-off-by: Martyna Szapar <martyna.szapar@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/intel/i40e/i40e_virtchnl_pf.c