]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit25e12cfe06c5a06867dd8086c2e0ef527d06d822
tree07c6516a7ffb0278eef8bc6d40bac6eab72eb028
parente3f3235cdd7a4895e5a12e6242081ef0b0a2095f
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