summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorJiasheng Jiang <jiasheng@iscas.ac.cn>2021-12-17 10:39:11 +0100
committerDavid S. Miller <davem@davemloft.net>2021-12-18 13:37:12 +0100
commit60ec7fcfe76892a1479afab51ff17a4281923156 (patch)
treec7af9aac54119c897a11cae7ffd96820cb9584fd /net
parentax25: NPD bug when detaching AX25 device (diff)
downloadlinux-60ec7fcfe76892a1479afab51ff17a4281923156.tar.xz
linux-60ec7fcfe76892a1479afab51ff17a4281923156.zip
qlcnic: potential dereference null pointer of rx_queue->page_ring
The return value of kcalloc() needs to be checked. To avoid dereference of null pointer in case of the failure of alloc. Therefore, it might be better to change the return type of qlcnic_sriov_alloc_vlans() and return -ENOMEM when alloc fails and return 0 the others. Also, qlcnic_sriov_set_guest_vlan_mode() and __qlcnic_pci_sriov_enable() should deal with the return value of qlcnic_sriov_alloc_vlans(). Fixes: 154d0c810c53 ("qlcnic: VLAN enhancement for 84XX adapters") Signed-off-by: Jiasheng Jiang <jiasheng@iscas.ac.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions