Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 71d78161 authored by Martyna Szapar's avatar Martyna Szapar Committed by Greg Kroah-Hartman
Browse files

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.

Fixes: e284fc28 ("i40e: Add and delete cloud filter")
Signed-off-by: default avatarMartyna Szapar <martyna.szapar@intel.com>
Signed-off-by: default avatarJeff Kirsher <jeffrey.t.kirsher@intel.com>
Signed-off-by: default avatarJesse Brandeburg <jesse.brandeburg@intel.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 48a9be93
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment