summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander Viro <viro@parcelfarce.linux.theplanet.co.uk>2004-07-12 21:03:08 -0700
committerLinus Torvalds <torvalds@ppc970.osdl.org>2004-07-12 21:03:08 -0700
commit6a3643ed3d8bfa46dea8a42df7840f40a6886dae (patch)
tree79b74e5d3a1e9f6795d1df733bcf0cd318944cb9
parent95b5842264ac470a1a3a59d2741bb18adb140c8b (diff)
[PATCH] sparse: gemtek ioctl fix
Dumb Typo(tm) - the first bug caught by 0/NULL checks (arg is really a kernel pointer there, so memset() is actually OK - results will be copied to userland by caller. Or would be, if we would not oops ;-)
-rw-r--r--drivers/media/radio/radio-gemtek.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/radio/radio-gemtek.c b/drivers/media/radio/radio-gemtek.c
index 3e765d66d833..23bc25d1027d 100644
--- a/drivers/media/radio/radio-gemtek.c
+++ b/drivers/media/radio/radio-gemtek.c
@@ -194,7 +194,7 @@ static int gemtek_do_ioctl(struct inode *inode, struct file *file,
}
case VIDIOCGAUDIO:
{
- struct video_audio *v = 0;
+ struct video_audio *v = arg;
memset(v,0, sizeof(*v));
v->flags|=VIDEO_AUDIO_MUTABLE;
v->volume=1;