mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-03 19:26:01 -04:00
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>
This commit is contained in:
committed by
David S. Miller
parent
00587f2fa7
commit
689062a18c
@@ -145,6 +145,8 @@ octeon_droq_destroy_ring_buffers(struct octeon_device *oct,
|
||||
|
||||
for (i = 0; i < droq->max_count; i++) {
|
||||
pg_info = &droq->recv_buf_list[i].pg_info;
|
||||
if (!pg_info)
|
||||
continue;
|
||||
|
||||
if (pg_info->dma)
|
||||
lio_unmap_ring(oct->pci_dev,
|
||||
|
||||
Reference in New Issue
Block a user