mirror of https://gitee.com/openkylin/linux.git
uml: fix errno return
Error returns are negative. Signed-off-by: Johann Felix Soden <johfel@users.sourceforge.net> Signed-off-by: Jeff Dike <jdike@linux.intel.com> Cc: WANG Cong <xiyou.wangcong@gmail.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
47906dd9e6
commit
484f1e2c1e
|
@ -154,7 +154,7 @@ static int hostaudio_ioctl(struct inode *inode, struct file *file,
|
|||
case SNDCTL_DSP_SUBDIVIDE:
|
||||
case SNDCTL_DSP_SETFRAGMENT:
|
||||
if (get_user(data, (int __user *) arg))
|
||||
return EFAULT;
|
||||
return -EFAULT;
|
||||
break;
|
||||
default:
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue