Commit 009ada10 authored by Johannes Stezenbach's avatar Johannes Stezenbach Committed by Linus Torvalds

[PATCH] dvb_usercopy() fix

Fix some breakage in dvb_usercopy() introduced by sparse cleanups in -rc2.
Signed-off-by: default avatarJohannes Stezenbach <js@convergence.de>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 01fedaf9
...@@ -36,7 +36,11 @@ int dvb_usercopy(struct inode *inode, struct file *file, ...@@ -36,7 +36,11 @@ int dvb_usercopy(struct inode *inode, struct file *file,
/* Copy arguments into temp kernel buffer */ /* Copy arguments into temp kernel buffer */
switch (_IOC_DIR(cmd)) { switch (_IOC_DIR(cmd)) {
case _IOC_NONE: case _IOC_NONE:
parg = NULL; /*
* For this command, the pointer is actually an integer
* argument.
*/
parg = (void *) arg;
break; break;
case _IOC_READ: /* some v4l ioctls are marked wrong ... */ case _IOC_READ: /* some v4l ioctls are marked wrong ... */
case _IOC_WRITE: case _IOC_WRITE:
......
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