net: lio_core: fix two NULL pointer dereferences
authorKangjie Lu <kjlu@umn.edu>
Mon, 11 Mar 2019 06:01:41 +0000 (01:01 -0500)
committerDavid S. Miller <davem@davemloft.net>
Mon, 11 Mar 2019 19:29:17 +0000 (12:29 -0700)
commit41af8b3a097c6fd17a4867efa25966927094f57c
tree07c6516a7ffb0278eef8bc6d40bac6eab72eb028
parentdd9d9f5907bb475f8b1796c47d4ecc7fb9b72136
net: lio_core: fix two NULL pointer dereferences

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

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