From patchwork Wed Dec 9 19:23:49 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julia Lawall X-Patchwork-Id: 66054 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 nB9JObSA021418 for ; Wed, 9 Dec 2009 19:24:37 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1754864AbZLITXr (ORCPT ); Wed, 9 Dec 2009 14:23:47 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757300AbZLITXq (ORCPT ); Wed, 9 Dec 2009 14:23:46 -0500 Received: from mgw1.diku.dk ([130.225.96.91]:52731 "EHLO mgw1.diku.dk" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757216AbZLITXo (ORCPT ); Wed, 9 Dec 2009 14:23:44 -0500 Received: from localhost (localhost [127.0.0.1]) by mgw1.diku.dk (Postfix) with ESMTP id B8D0E52C3A6; Wed, 9 Dec 2009 20:23:50 +0100 (CET) X-Virus-Scanned: amavisd-new at diku.dk Received: from mgw1.diku.dk ([127.0.0.1]) by localhost (mgw1.diku.dk [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id PK4n+XUf1E3f; Wed, 9 Dec 2009 20:23:49 +0100 (CET) Received: from nhugin.diku.dk (nhugin.diku.dk [130.225.96.140]) by mgw1.diku.dk (Postfix) with ESMTP id 7DCC352C392; Wed, 9 Dec 2009 20:23:49 +0100 (CET) Received: from ask.diku.dk (ask.diku.dk [130.225.96.225]) by nhugin.diku.dk (Postfix) with ESMTP id DAF1E6DF894; Wed, 9 Dec 2009 20:20:02 +0100 (CET) Received: by ask.diku.dk (Postfix, from userid 3767) id 2B1BB475B; Wed, 9 Dec 2009 20:23:49 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by ask.diku.dk (Postfix) with ESMTP id 21CF74632; Wed, 9 Dec 2009 20:23:49 +0100 (CET) Date: Wed, 9 Dec 2009 20:23:49 +0100 (CET) From: Julia Lawall To: Laurent Pinchart , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org, kernel-janitors@vger.kernel.org Subject: [PATCH 5/12] drivers/media/video/uvc: Correct size given to memset Message-ID: MIME-Version: 1.0 Sender: linux-media-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org diff -u -p a/drivers/media/video/uvc/uvc_video.c b/drivers/media/video/uvc/uvc_video.c --- a/drivers/media/video/uvc/uvc_video.c +++ b/drivers/media/video/uvc/uvc_video.c @@ -145,7 +145,7 @@ static int uvc_get_video_ctrl(struct uvc uvc_warn_once(stream->dev, UVC_WARN_MINMAX, "UVC non " "compliance - GET_MIN/MAX(PROBE) incorrectly " "supported. Enabling workaround.\n"); - memset(ctrl, 0, sizeof ctrl); + memset(ctrl, 0, sizeof *ctrl); ctrl->wCompQuality = le16_to_cpup((__le16 *)data); ret = 0; goto out;