diff options
| author | Matteo Croce <[email protected]> | 2020-07-07 13:19:13 +0000 |
|---|---|---|
| committer | David S. Miller <[email protected]> | 2020-07-07 20:03:21 +0000 |
| commit | 4e48978cd28ce51945c08650e5c5502ca41e1fcc (patch) | |
| tree | 5b5039830e3a61daa0590688ae25f8069a323470 /tools/bpf/bpftool/common.c | |
| parent | mptcp: use mptcp worker for path management (diff) | |
| download | kernel-4e48978cd28ce51945c08650e5c5502ca41e1fcc.tar.gz kernel-4e48978cd28ce51945c08650e5c5502ca41e1fcc.zip | |
mvpp2: fix pointer check
priv->page_pool is an array, so comparing against it will always return true.
Do a meaningful check by checking priv->page_pool[0] instead.
While at it, clear the page_pool pointers on deallocation, or when an
allocation error happens during init.
Reported-by: Colin Ian King <[email protected]>
Fixes: c2d6fe6163de ("mvpp2: XDP TX support")
Signed-off-by: Matteo Croce <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/bpf/bpftool/common.c')
0 files changed, 0 insertions, 0 deletions
