n_tty: wake up poll(POLLRDNORM) on receiving data
[linux-2.6-microblaze.git] / mm / userfaultfd.c
index ac6f036..0780c2a 100644 (file)
@@ -232,6 +232,11 @@ static int mcontinue_atomic_pte(struct mm_struct *dst_mm,
                goto out;
        }
 
+       if (PageHWPoison(page)) {
+               ret = -EIO;
+               goto out_release;
+       }
+
        ret = mfill_atomic_install_pte(dst_mm, dst_pmd, dst_vma, dst_addr,
                                       page, false, wp_copy);
        if (ret)