The patch number 13287 was added via Douglas Schilling Landgraf 
<dougsl...@redhat.com>
to http://linuxtv.org/hg/v4l-dvb master development tree.

Kernel patches in this development tree may be modified to be backward
compatible with older kernels. Compatibility modifications will be
removed before inclusion into the mainstream Kernel

If anyone has any objections, please let us know by sending a message to:
        Linux Media Mailing List <linux-me...@vger.kernel.org>

------

From: Jean Delvare  <kh...@linux-fr.org>
ce6230 - saa7164-cmd: Fix wrong sizeof


Which is why I have always preferred sizeof(struct foo) over
sizeof(var).

Priority: normal

Signed-off-by: Jean Delvare <kh...@linux-fr.org>
CC: Antti Palosaari <cr...@iki.fi>
Acked-By: Steven Toth <st...@kernellabs.com>
Signed-off-by: Douglas Schilling Landgraf <dougsl...@redhat.com>


---

 linux/drivers/media/dvb/dvb-usb/ce6230.c        |    2 +-
 linux/drivers/media/video/saa7164/saa7164-cmd.c |    2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff -r 96b025500002 -r d7ffca629fa7 linux/drivers/media/dvb/dvb-usb/ce6230.c
--- a/linux/drivers/media/dvb/dvb-usb/ce6230.c  Wed Nov 04 12:18:04 2009 -0500
+++ b/linux/drivers/media/dvb/dvb-usb/ce6230.c  Wed Nov 04 13:26:59 2009 -0500
@@ -105,7 +105,7 @@
        int i = 0;
        struct req_t req;
        int ret = 0;
-       memset(&req, 0, sizeof(&req));
+       memset(&req, 0, sizeof(req));
 
        if (num > 2)
                return -EINVAL;
diff -r 96b025500002 -r d7ffca629fa7 
linux/drivers/media/video/saa7164/saa7164-cmd.c
--- a/linux/drivers/media/video/saa7164/saa7164-cmd.c   Wed Nov 04 12:18:04 
2009 -0500
+++ b/linux/drivers/media/video/saa7164/saa7164-cmd.c   Wed Nov 04 13:26:59 
2009 -0500
@@ -347,7 +347,7 @@
 
        /* Prepare some basic command/response structures */
        memset(&command_t, 0, sizeof(command_t));
-       memset(&response_t, 0, sizeof(&response_t));
+       memset(&response_t, 0, sizeof(response_t));
        pcommand_t = &command_t;
        presponse_t = &response_t;
        command_t.id = id;


---

Patch is available at: 
http://linuxtv.org/hg/v4l-dvb/rev/d7ffca629fa7a587fed889522208868a4c9250b7

_______________________________________________
linuxtv-commits mailing list
linuxtv-commits@linuxtv.org
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to