scsi: libcxgbi: add a check for NULL pointer in cxgbi_check_route()
authorVarun Prakash <varun@chelsio.com>
Wed, 22 May 2019 14:40:55 +0000 (20:10 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 22 Jun 2019 06:16:18 +0000 (08:16 +0200)
commit60ac7a4840466992b1ac808e1dbc503359bf83ab
tree0436f31a61757cf62a08a0c31bd15afde7571081
parent90abd7a3d0ee4f500c02ffa6a74faacf68afb218
scsi: libcxgbi: add a check for NULL pointer in cxgbi_check_route()

[ Upstream commit cc555759117e8349088e0c5d19f2f2a500bafdbd ]

ip_dev_find() can return NULL so add a check for NULL pointer.

Signed-off-by: Varun Prakash <varun@chelsio.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/scsi/cxgbi/libcxgbi.c