[PATCH] drivers/media/video/em28xx: memset region size error

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



>From 2082ccb34a1ef5f67ec0618ed05d2f15c67d1da0 Mon Sep 17 00:00:00 2001
From: Jan Ceuleers <jan.ceuleers@xxxxxxxxxxxx>
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@xxxxxxxxxxxx>
---
 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
--
To unsubscribe from this list: send the line "unsubscribe linux-media" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Input]     [Video for Linux]     [Gstreamer Embedded]     [Mplayer Users]     [Linux USB Devel]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux