Skip to content
Commit dfb06cba authored by Dave Jiang's avatar Dave Jiang Committed by Dan Williams
Browse files

uaccess: Fix is_source param for check_copy_size() in copy_to_iter_mcsafe()



copy_to_iter_mcsafe() is passing in the is_source parameter as "false"
to check_copy_size(). This is different than what copy_to_iter() does.
Also, the addr parameter passed to check_copy_size() is the source so
therefore we should be passing in "true" instead.

Fixes: 8780356e ("x86/asm/memcpy_mcsafe: Define copy_to_iter_mcsafe()")
Cc: <stable@vger.kernel.org>
Reported-by: default avatarFan Du <fan.du@intel.com>
Signed-off-by: default avatarDave Jiang <dave.jiang@intel.com>
Reviewed-by: default avatarVishal Verma <vishal.l.verma@intel.com>
Reported-by: default avatarWenwei Tao <wenwei.tww@alibaba-inc.com>
Signed-off-by: default avatarDan Williams <dan.j.williams@intel.com>
parent b90ca5cc
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment