Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759463AbZKKV7c (ORCPT ); Wed, 11 Nov 2009 16:59:32 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1759325AbZKKV7b (ORCPT ); Wed, 11 Nov 2009 16:59:31 -0500 Received: from mx1.redhat.com ([209.132.183.28]:22402 "EHLO mx1.redhat.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1759228AbZKKV7a (ORCPT ); Wed, 11 Nov 2009 16:59:30 -0500 Date: Wed, 11 Nov 2009 16:59:28 -0500 From: Dave Jones To: Mauro Carvalho Chehab Cc: kraxel@bytesex.org, Linux Kernel Subject: Fix argument order in memset call in ./drivers/media/common/ir-functions.c Message-ID: <20091111215928.GA25154@redhat.com> Mail-Followup-To: Dave Jones , Mauro Carvalho Chehab , kraxel@bytesex.org, Linux Kernel MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-08-17) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 826 Lines: 22 Size is the third argument, not the second. Signed-off-by: Dave Jones diff --git a/drivers/media/common/ir-functions.c b/drivers/media/common/ir-functions.c index 655474b..abd4791 100644 --- a/drivers/media/common/ir-functions.c +++ b/drivers/media/common/ir-functions.c @@ -64,7 +64,7 @@ void ir_input_init(struct input_dev *dev, struct ir_input_state *ir, ir->ir_type = ir_type; - memset(ir->ir_codes, sizeof(ir->ir_codes), 0); + memset(ir->ir_codes, 0, sizeof(ir->ir_codes)); /* * FIXME: This is a temporary workaround to use the new IR tables -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/