From patchwork Fri Oct 2 09:06:48 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jean Delvare X-Patchwork-Id: 51316 X-Patchwork-Delegate: dougsland@redhat.com Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id n9296pBn014864 for ; Fri, 2 Oct 2009 09:06:51 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753576AbZJBJGq (ORCPT ); Fri, 2 Oct 2009 05:06:46 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753443AbZJBJGq (ORCPT ); Fri, 2 Oct 2009 05:06:46 -0400 Received: from bamako.nerim.net ([62.4.17.28]:52292 "EHLO bamako.nerim.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1753518AbZJBJGp (ORCPT ); Fri, 2 Oct 2009 05:06:45 -0400 Received: from localhost (localhost [127.0.0.1]) by bamako.nerim.net (Postfix) with ESMTP id DC48F39DC83 for ; Fri, 2 Oct 2009 11:06:47 +0200 (CEST) X-Virus-Scanned: amavisd-new at nerim.net Received: from bamako.nerim.net ([127.0.0.1]) by localhost (bamako.nerim.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id w8zGG9zmi7BY for ; Fri, 2 Oct 2009 11:06:47 +0200 (CEST) Received: from hyperion.delvare (jdelvare.pck.nerim.net [62.212.121.182]) by bamako.nerim.net (Postfix) with ESMTP id D9C2F39DC7E for ; Fri, 2 Oct 2009 11:06:46 +0200 (CEST) Date: Fri, 2 Oct 2009 11:06:48 +0200 From: Jean Delvare To: LMML Subject: [PATCH] Fix wrong sizeof Message-ID: <20091002110648.5d8d5b17@hyperion.delvare> X-Mailer: Claws Mail 3.5.0 (GTK+ 2.14.4; i586-suse-linux-gnu) Mime-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org --- v4l-dvb.orig/linux/drivers/media/dvb/dvb-usb/ce6230.c 2009-09-26 13:10:08.000000000 +0200 +++ v4l-dvb/linux/drivers/media/dvb/dvb-usb/ce6230.c 2009-10-02 11:03:17.000000000 +0200 @@ -105,7 +105,7 @@ static int ce6230_i2c_xfer(struct i2c_ad 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; --- v4l-dvb.orig/linux/drivers/media/video/saa7164/saa7164-cmd.c 2009-09-26 13:10:09.000000000 +0200 +++ v4l-dvb/linux/drivers/media/video/saa7164/saa7164-cmd.c 2009-10-02 11:03:21.000000000 +0200 @@ -347,7 +347,7 @@ int saa7164_cmd_send(struct saa7164_dev /* 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;