Home
last modified time | relevance | path

Searched hist:"458 f5d92" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/net/ethernet/sfc/
H A Drx_common.c458f5d92 Mon Apr 04 05:48:51 CDT 2022 Martin Habets <habetsm.xilinx@gmail.com> sfc: Do not free an empty page_ring

When the page_ring is not used page_ptr_mask is 0.
Do not dereference page_ring[0] in this case.

Fixes: 2768935a4660 ("sfc: reuse pages to avoid DMA mapping/unmapping costs")
Reported-by: Taehee Yoo <ap420073@gmail.com>
Signed-off-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>