mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-10-09 18:15:49 +00:00
qed/qed_sriov: guard against NULL derefs from qed_iov_get_vf_info
[ Upstream commit25143b6a01] We have to make sure that the info returned by the helper is valid before using it. Found by Linux Verification Center (linuxtesting.org) with the SVACE static analysis tool. Fixes:f990c82c38("qed*: Add support for ndo_set_vf_trust") Fixes:733def6a04("qed*: IOV link control") Signed-off-by: Daniil Tatianin <d-tatianin@yandex-team.ru> Reviewed-by: Michal Swiatkowski <michal.swiatkowski@linux.intel.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
58c11bc7ad
commit
97ea704f39
1 changed files with 4 additions and 1 deletions
Loading…
Add table
Add a link
Reference in a new issue