Commit 4dfc0d48 authored by Alexander Viro's avatar Alexander Viro Committed by Linus Torvalds

[PATCH] swim3 __user annotation

Signed-off-by: default avatarAl Viro <viro@parcelfarce.linux.theplanet.co.uk>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 17675db1
......@@ -866,7 +866,7 @@ static int floppy_ioctl(struct inode *inode, struct file *filp,
err = fd_eject(fs);
return err;
case FDGETPRM:
if (copy_to_user((void *) param, (void *)&floppy_type,
if (copy_to_user((void __user *) param, &floppy_type,
sizeof(struct floppy_struct)))
return -EFAULT;
return 0;
......
Markdown is supported
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