Skip to content
Commit 4e48978c authored by Matteo Croce's avatar Matteo Croce Committed by David S. Miller
Browse files

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: default avatarColin Ian King <colin.king@canonical.com>
Fixes: c2d6fe61

 ("mvpp2: XDP TX support")
Signed-off-by: default avatarMatteo Croce <mcroce@microsoft.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b416268b
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