aboutsummaryrefslogtreecommitdiffstats
path: root/net/core/page_pool.c
diff options
context:
space:
mode:
authorWolfram Sang <wsa+renesas@sang-engineering.com>2025-09-06 10:17:35 +0200
committerWolfram Sang <wsa+renesas@sang-engineering.com>2025-09-06 10:17:35 +0200
commitd035b4baebfc5112b128b66cafd45d2522a9c8f1 (patch)
treefc96e96e81597068c9a869c679d18a1a44394164 /net/core/page_pool.c
parentLinux 6.17-rc3 (diff)
parenti2c: rtl9300: remove broken SMBus Quick operation support (diff)
downloadlinux-d035b4baebfc5112b128b66cafd45d2522a9c8f1.tar.gz
linux-d035b4baebfc5112b128b66cafd45d2522a9c8f1.zip
Merge tag 'i2c-host-fixes-6.17-rc5' of git://git.kernel.org/pub/scm/linux/kernel/git/andi.shyti/linux into i2c/for-current
i2c-host-fixes for v6.17-rc5 - i801: fix device IDs - in rtl9300: - fix channel number check in probe - check data length boundaries in xfer - drop unsupported SMBus quick operation
Diffstat (limited to 'net/core/page_pool.c')
-rw-r--r--net/core/page_pool.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/net/core/page_pool.c b/net/core/page_pool.c
index 343a6cac21e3..ba70569bd4b0 100644
--- a/net/core/page_pool.c
+++ b/net/core/page_pool.c
@@ -287,8 +287,10 @@ static int page_pool_init(struct page_pool *pool,
}
if (pool->mp_ops) {
- if (!pool->dma_map || !pool->dma_sync)
- return -EOPNOTSUPP;
+ if (!pool->dma_map || !pool->dma_sync) {
+ err = -EOPNOTSUPP;
+ goto free_ptr_ring;
+ }
if (WARN_ON(!is_kernel_rodata((unsigned long)pool->mp_ops))) {
err = -EFAULT;