]> git.baikalelectronics.ru Git - kernel.git/commit
RDMA/qedr: add null check before pointer dereference
authorGustavo A. R. Silva <garsilva@embeddedor.com>
Mon, 22 May 2017 18:30:15 +0000 (13:30 -0500)
committerDoug Ledford <dledford@redhat.com>
Thu, 1 Jun 2017 21:20:08 +0000 (17:20 -0400)
commit01a3f39243a6fe4d75a5d63198d975b0ff56b052
treecf620f4019a4a5e3b4128abee6da82b86d366768
parent6d7b18c50a74fc6f6cb874e582e6495151aff0fc
RDMA/qedr: add null check before pointer dereference

Add null check before dereferencing pointer sgid_attr.ndev
inside function rdma_vlan_dev_vlan_id().

Addresses-Coverity-ID: 1373979
Signed-off-by: Gustavo A. R. Silva <garsilva@embeddedor.com>
Acked-by: Ram Amrani <Ram.Amrani@cavium.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
drivers/infiniband/hw/qedr/qedr_cm.c