diff mbox

drivers/media/video/em28xx: memset region size error

Message ID 4AC7664B.3090404@computer.org (mailing list archive)
State Not Applicable
Headers show

Commit Message

Jan Ceuleers Oct. 3, 2009, 2:57 p.m. UTC
None
diff mbox

Patch

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);