From patchwork Sat Oct 3 14:57:15 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jan Ceuleers X-Patchwork-Id: 51534 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 n93F3Q76010524 for ; Sat, 3 Oct 2009 15:03:26 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756088AbZJCPBf (ORCPT ); Sat, 3 Oct 2009 11:01:35 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755625AbZJCPBf (ORCPT ); Sat, 3 Oct 2009 11:01:35 -0400 Received: from mailrelay003.isp.belgacom.be ([195.238.6.53]:4200 "EHLO mailrelay003.isp.belgacom.be" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751163AbZJCPBe (ORCPT ); Sat, 3 Oct 2009 11:01:34 -0400 X-Belgacom-Dynamic: yes X-IronPort-Anti-Spam-Filtered: true X-IronPort-Anti-Spam-Result: AsAEABUEx0pR8xqU/2dsb2JhbACBUdBUhCoE Received: from 148.26-243-81.adsl-dyn.isp.belgacom.be (HELO via.xperim.be) ([81.243.26.148]) by relay.skynet.be with ESMTP; 03 Oct 2009 17:00:57 +0200 Received: from [192.168.1.4] (athloroad.xperim.be [192.168.1.4]) (authenticated bits=0) by via.xperim.be (8.14.2/8.14.2/Debian-2build1) with ESMTP id n93EvGDm013783 for ; Sat, 3 Oct 2009 16:57:17 +0200 Received: from 127.0.0.1 (AVG SMTP 8.5.409 [270.14.3/2409]); Sat, 03 Oct 2009 16:57:15 +0200 Message-ID: <4AC7664B.3090404@computer.org> Date: Sat, 03 Oct 2009 16:57:15 +0200 From: Jan Ceuleers User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: linux-media@vger.kernel.org Subject: [PATCH] drivers/media/video/em28xx: memset region size error Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org 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);