Orabug:
26132331
IOCTL for ccb submission failed due to get_user_pages error should
return EFAULT instead of EPERM. This was a regression introduced by a
prior patch that cleaned up a few functions in this code path.
Reviewed-by: Shannon Nelson <shannon.nelson@oracle.com>
Signed-off-by: Sanath Kumar <sanath.s.kumar@oracle.com>
rv = dax_map_segment(dax_ctx, ccb_buf, usr_args.dce_ccb_buf_len);
if (rv != 0)
- return rv;
+ return -EFAULT;
hv_rv = dax_ccb_hv_submit(dax_ctx, ccb_buf, usr_args.dce_ccb_buf_len,
&usr_args);