qlcnic: check pci_reset_function result
stable inclusion from stable-v5.10.178 commit dad92d8ada07f1a700d7ac83358e1682d6f98f9e category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I8D927 Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=dad92d8ada07f1a700d7ac83358e1682d6f98f9e -------------------------------- [ Upstream commit 7573099e ] Static code analyzer complains to unchecked return value. The result of pci_reset_function() is unchecked. Despite, the issue is on the FLR supported code path and in that case reset can be done with pcie_flr(), the patch uses less invasive approach by adding the result check of pci_reset_function(). Found by Linux Verification Center (linuxtesting.org) with SVACE. Fixes: 7e2cf4fe ("qlcnic: change driver hardware interface mechanism") Signed-off-by:Denis Plotnikov <den-plotnikov@yandex-team.ru> Reviewed-by:
Simon Horman <simon.horman@corigine.com> Reviewed-by:
Bjorn Helgaas <bhelgaas@google.com> Signed-off-by:
David S. Miller <davem@davemloft.net> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment