Re: [PATCH 1/1] qlcnic: fix unchecked return value
From: David Miller
Date: Mon Apr 24 2017 - 16:11:32 EST
aFrom: Pan Bian <bianpan201602@xxxxxxx>
Date: Sun, 23 Apr 2017 20:04:04 +0800
> From: Pan Bian <bianpan2016@xxxxxxx>
>
> 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 <bianpan2016@xxxxxxx>
Applied.