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)
commitfe543b2f174f34a7a751aa08b334fe6b105c4569
tree499aaaa1a3c2be5c7418f3d19704028032b54f7a
parenta623a7a1a5670c25a16881f5078072d272d96b71
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