mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-12-28 11:18:45 +07:00
4e48978cd2
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.king@canonical.com>
Fixes:
|
||
---|---|---|
.. | ||
Makefile | ||
mvpp2_cls.c | ||
mvpp2_cls.h | ||
mvpp2_debugfs.c | ||
mvpp2_main.c | ||
mvpp2_prs.c | ||
mvpp2_prs.h | ||
mvpp2.h |