Loading
net: libwx: fix memory leak on free page
mainline inclusion from mainline-v6.7-rc1 commit 738b54b9b6236f573eed2453c4cbfa77326793e2 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I93QRU CVE: NA Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=738b54b9b6236f573eed2453c4cbfa77326793e2 --------------------------------------------------------- ifconfig ethx up, will set page->refcount larger than 1, and then ifconfig ethx down, calling __page_frag_cache_drain() to free pages, it is not compatible with page pool. So deleting codes which changing page->refcount. Fixes: 3c47e8ae ("net: libwx: Support to receive packets in NAPI") Signed-off-by:duanqiangwen <duanqiangwen@net-swift.com> Signed-off-by:
David S. Miller <davem@davemloft.net>