liquidio: lowmem: do not dereference null ptr
authorRick Farrington <ricardo.farrington@cavium.com>
Tue, 18 Jul 2017 00:51:10 +0000 (17:51 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Jul 2017 20:24:46 +0000 (13:24 -0700)
commit689062a18c00f49f9c32ac8d5366c075ab691c30
tree119ee6676f73fc3571bb6c451fcc70d63bbaf501
parent00587f2fa70866a2c3425ee799c91657b4717b7c
liquidio: lowmem: do not dereference null ptr

Don't dereference a NULL ptr in octeon_droq_destroy_ring_buffers().

Signed-off-by: Rick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: Satanand Burla <satananda.burla@cavium.com>
Signed-off-by: Raghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: Felix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/cavium/liquidio/octeon_droq.c