* [PATCH] drivers/media/video/em28xx: memset region size error
@ 2009-10-03 14:57 Jan Ceuleers
0 siblings, 0 replies; only message in thread
From: Jan Ceuleers @ 2009-10-03 14:57 UTC (permalink / raw)
To: linux-media
>From 2082ccb34a1ef5f67ec0618ed05d2f15c67d1da0 Mon Sep 17 00:00:00 2001
From: Jan Ceuleers <jan.ceuleers@computer.org>
Date: Sat, 3 Oct 2009 16:51:31 +0200
Subject: [PATCH] drivers/media/video/em28xx: memset region size error
The size of the region to be memset() should be the size
of the target rather than the size of the pointer to it.
Compile-tested only.
Signed-off-by: Jan Ceuleers <jan.ceuleers@computer.org>
---
drivers/media/video/em28xx/em28xx-cards.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/media/video/em28xx/em28xx-cards.c b/drivers/media/video/em28xx/em28xx-cards.c
index bdb249b..dd4f19b 100644
--- a/drivers/media/video/em28xx/em28xx-cards.c
+++ b/drivers/media/video/em28xx/em28xx-cards.c
@@ -2234,7 +2234,7 @@ void em28xx_register_i2c_ir(struct em28xx *dev)
if (disable_ir)
return;
- memset(&dev->info, 0, sizeof(&dev->info));
+ memset(&dev->info, 0, sizeof(dev->info));
memset(&dev->init_data, 0, sizeof(dev->init_data));
strlcpy(dev->info.type, "ir_video", I2C_NAME_SIZE);
--
1.5.4.3
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2009-10-03 15:01 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-10-03 14:57 [PATCH] drivers/media/video/em28xx: memset region size error Jan Ceuleers
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.