mm/hwpoison: return -EFAULT when copy fail in copy_mc_[user]_highpage()
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/kernel/issues/I8M74H CVE: NA ------------------------------- If hardware errors are encountered during page copying, returning the bytes not copied is not meaningful, and the caller cannot do any processing on the remaining data. Returning -EFAULT is more reasonable, which represents a hardware error encountered during the copying. Signed-off-by:Tong Tiangen <tongtiangen@huawei.com>
Loading
Please sign in to comment