diff options
-rw-r--r-- | mm/gup.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/mm/gup.c b/mm/gup.c index 3e7eac9a4f2b4..8d9b560a0fec2 100644 --- a/mm/gup.c +++ b/mm/gup.c @@ -3702,6 +3702,7 @@ long memfd_pin_folios(struct file *memfd, loff_t start, loff_t end, ret = PTR_ERR(folio); if (ret != -EEXIST) goto err; + folio = NULL; } } } |