]> git.baikalelectronics.ru Git - kernel.git/commit
net: liquidio: fix a NULL pointer dereference
authorKangjie Lu <kjlu@umn.edu>
Mon, 11 Mar 2019 05:02:32 +0000 (00:02 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Mar 2019 18:43:39 +0000 (11:43 -0700)
commit35474b8c908ba36f4f235ecc991d75f34fd3848b
tree499aaaa1a3c2be5c7418f3d19704028032b54f7a
parentf41cf913b3f3e8636b40eace589fdf1624f38d25
net: liquidio: fix a NULL pointer dereference

In case octeon_alloc_soft_command fails, the fix reports the
error and returns to avoid NULL pointer dereference.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/lio_main.c