Commit 681be068 authored by Tong Tiangen's avatar Tong Tiangen
Browse files

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: default avatarTong Tiangen <tongtiangen@huawei.com>
parent 1a1eddb9
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment