Google
  Web www.spinics.net

[PATCH] drivers/media/video/videodev.c: memset fix

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


Hello,

	Looks like memset() is zeroing wrong nr of bytes.

Signed-off-by: Mariusz Kozlowski <m.kozlowski at tuxland.pl>

 drivers/media/video/videodev.c | 46097 -> 46100 (+3 bytes)
 drivers/media/video/videodev.o | 165109 -> 165209 (+100 bytes)

 drivers/media/video/videodev.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- linux-2.6.23-rc1-mm2-a/drivers/media/video/videodev.c	2007-08-01 08:43:47.000000000 +0200
+++ linux-2.6.23-rc1-mm2-b/drivers/media/video/videodev.c	2007-08-06 20:37:46.000000000 +0200
@@ -448,7 +448,7 @@ static int __video_do_ioctl(struct inode
 	if (cmd == VIDIOCGMBUF) {
 		struct video_mbuf *p=arg;

-		memset(p,0,sizeof(p));
+		memset(p, 0, sizeof(*p));

 		if (!vfd->vidiocgmbuf)
 			return ret;



[Linux Media]     [Older V4L]     [Linux DVB]     [Video Disk Recorder]     [Asterisk]     [Photo]     [DCCP]     [Netdev]     [Xorg]     [Util Linux NG]     [Xfree86]     [Free Photo Albums]     [Fedora Users]     [Fedora Women]     [ALSA Users]     [ALSA Devel]     [SSH]     [Linux USB]

-->
Add to Google Powered by Linux

Google PageRank Checking tool