]> 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)
commit933f85ffcffcffe453996f99b07b80857a4c8363
tree499aaaa1a3c2be5c7418f3d19704028032b54f7a
parentc348267b49d04310cfd2a701fae2e84303c57992
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