From: Matteo Croce <mcr...@linux.microsoft.com> Date: Tue, 7 Jul 2020 15:19:13 +0200
> From: Matteo Croce <mcr...@microsoft.com> > > 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 <colin.k...@canonical.com> > Fixes: c2d6fe6163de ("mvpp2: XDP TX support") > Signed-off-by: Matteo Croce <mcr...@microsoft.com> Applied.