diff options
| -rw-r--r-- | io_uring/zcrx.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/io_uring/zcrx.c b/io_uring/zcrx.c index ef8d60b92646..0f15e0fa5467 100644 --- a/io_uring/zcrx.c +++ b/io_uring/zcrx.c @@ -77,6 +77,9 @@ static int io_populate_area_dma(struct io_zcrx_ifq *ifq, niov_idx++; } } + + if (WARN_ON_ONCE(niov_idx != area->nia.num_niovs)) + return -EFAULT; return 0; } |
