diff options
| author | Martin Habets <habetsm.xilinx@gmail.com> | 2022-04-04 13:48:51 +0300 |
|---|---|---|
| committer | David S. Miller <davem@davemloft.net> | 2022-04-04 14:53:52 +0300 |
| commit | 458f5d92df4807e2a7c803ed928369129996bf96 (patch) | |
| tree | b39ba87efdb8e6a849d3ed1cdf61263120beefd2 /scripts/gcc-plugins/randomize_layout_plugin.c | |
| parent | 2baed4f9b085724a8a34add832d4763f3d83f877 (diff) | |
| download | linux-458f5d92df4807e2a7c803ed928369129996bf96.tar.xz | |
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>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions
