Re: [PATCH 1/1] qlcnic: fix unchecked return value

2017-04-24 Thread David Miller
aFrom: Pan Bian Date: Sun, 23 Apr 2017 20:04:04 +0800 > From: Pan Bian > > Function pci_find_ext_capability() may return 0, which is an invalid > address. In function qlcnic_sriov_virtid_fn(), its return value is used > without validation. This may

[PATCH 1/1] qlcnic: fix unchecked return value

2017-04-23 Thread Pan Bian
From: Pan Bian Function pci_find_ext_capability() may return 0, which is an invalid address. In function qlcnic_sriov_virtid_fn(), its return value is used without validation. This may result in invalid memory access bugs. This patch fixes the bug. Signed-off-by: Pan Bian