[PATCH] trivial __user cleanup (video1394)

From: viro
Date: Fri Sep 09 2005 - 14:26:24 EST


Signed-off-by: Al Viro <viro@xxxxxxxxxxxxxxxxxx>
----
diff -urN RC13-git8-base/drivers/ieee1394/video1394.c current/drivers/ieee1394/video1394.c
--- RC13-git8-base/drivers/ieee1394/video1394.c 2005-08-28 23:09:41.000000000 -0400
+++ current/drivers/ieee1394/video1394.c 2005-09-08 23:53:33.000000000 -0400
@@ -883,7 +883,7 @@
v.channel);
}

- if (copy_to_user((void *)arg, &v, sizeof(v))) {
+ if (copy_to_user(argp, &v, sizeof(v))) {
/* FIXME : free allocated dma resources */
return -EFAULT;
}
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/