Commit 689062a1 authored by Rick Farrington's avatar Rick Farrington Committed by David S. Miller

liquidio: lowmem: do not dereference null ptr

Don't dereference a NULL ptr in octeon_droq_destroy_ring_buffers().
Signed-off-by: default avatarRick Farrington <ricardo.farrington@cavium.com>
Signed-off-by: default avatarSatanand Burla <satananda.burla@cavium.com>
Signed-off-by: default avatarRaghu Vatsavayi <raghu.vatsavayi@cavium.com>
Signed-off-by: default avatarFelix Manlunas <felix.manlunas@cavium.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 00587f2f
...@@ -145,6 +145,8 @@ octeon_droq_destroy_ring_buffers(struct octeon_device *oct, ...@@ -145,6 +145,8 @@ octeon_droq_destroy_ring_buffers(struct octeon_device *oct,
for (i = 0; i < droq->max_count; i++) { for (i = 0; i < droq->max_count; i++) {
pg_info = &droq->recv_buf_list[i].pg_info; pg_info = &droq->recv_buf_list[i].pg_info;
if (!pg_info)
continue;
if (pg_info->dma) if (pg_info->dma)
lio_unmap_ring(oct->pci_dev, lio_unmap_ring(oct->pci_dev,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment