Message ID | 20100121005426.32665b23@linux.lan.towertech.it |
---|---|
State | Accepted |
Headers | show
Return-Path: <3tZdXSw0MCe8Rqlddf-XffXcVkfnVikVTY.ZkikT-cZeloXffXcVXiflgj.Tfd@listserv.bounces.google.com> X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from mail-yx0-f158.google.com (mail-yx0-f158.google.com [209.85.210.158]) by ozlabs.org (Postfix) with ESMTP id 0DEA1B7D36 for <incoming@patchwork.ozlabs.org>; Thu, 21 Jan 2010 10:54:30 +1100 (EST) Received: by yxe30 with SMTP id 30sf4780583yxe.29 for <incoming@patchwork.ozlabs.org>; Wed, 20 Jan 2010 15:54:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlegroups.com; s=beta; h=domainkey-signature:received:x-beenthere:received:received:received :received:received-spf:received:date:from:to:cc:subject:message-id :in-reply-to:references:organization:x-mailer :x-this-is-a-real-message:mime-version:x-virus-scanned :x-virus-status:x-original-authentication-results:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:x-thread-url:x-message-url:sender:list-unsubscribe :list-subscribe:content-type; bh=gfc8Emk13VVrrPgA2xElwRF5VKhP2Q4FjSyRoF00eWU=; b=d9SmdNeBGynF2j5yN66cewxOiQMWGbRy7TJWwp/CrGRtB32kCZNPfyakESyUhaeqg+ JcS+wbuZ/qVi1kqpzxdBhcooCNCPFzltZr+M/RoHl81Fkr6ZDE/PdPx10uUcAPsevKhM rEmKllCE8/vW1zthqvapMiuH1HIQ4J8d2AjjY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=googlegroups.com; s=beta; h=x-beenthere:received-spf:date:from:to:cc:subject:message-id :in-reply-to:references:organization:x-mailer :x-this-is-a-real-message:mime-version:x-virus-scanned :x-virus-status:x-original-authentication-results:x-original-sender :reply-to:precedence:mailing-list:list-id:list-post:list-help :list-archive:x-thread-url:x-message-url:sender:list-unsubscribe :list-subscribe:content-type; b=W3VFoZK7iIwc8gK+STw71snecrQsIh4BNglv5KXRH826yKISkOjbeRNNWnrQDrgrRR u02YEhBvpFPtDtYJuJCnGkFlQWuWHWWyXKQ83YWsG38jvuW1SW5QOVkJ1gcIQQpfI6Qw iZGUYNWhaykVCGgKzqi4i7TW/ZS6W1rosfRLc= Received: by 10.101.5.7 with SMTP id h7mr54807ani.44.1264031669107; Wed, 20 Jan 2010 15:54:29 -0800 (PST) X-BeenThere: rtc-linux@googlegroups.com Received: by 10.204.156.19 with SMTP id u19ls908152bkw.2.p; Wed, 20 Jan 2010 15:54:28 -0800 (PST) Received: by 10.204.13.70 with SMTP id b6mr21922bka.37.1264031668124; Wed, 20 Jan 2010 15:54:28 -0800 (PST) Received: by 10.204.13.70 with SMTP id b6mr21921bka.37.1264031668087; Wed, 20 Jan 2010 15:54:28 -0800 (PST) Received: from elettra.colt-to.towertech.it (elettra.colt-to.towertech.it [213.215.222.70]) by gmr-mx.google.com with ESMTP id 18si33381bwz.13.2010.01.20.15.54.28; Wed, 20 Jan 2010 15:54:28 -0800 (PST) Received-SPF: pass (google.com: domain of a.zummo@towertech.it designates 213.215.222.70 as permitted sender) client-ip=213.215.222.70; Received: from linux.lan.towertech.it (93-39-56-184.ip74.fastwebnet.it [93.39.56.184]) by elettra.colt-to.towertech.it (Postfix) with ESMTPSA id A5A5C116727; Thu, 21 Jan 2010 00:54:27 +0100 (CET) Date: Thu, 21 Jan 2010 00:54:26 +0100 From: Alessandro Zummo <a.zummo@towertech.it> To: akpm@linux-foundation.org Cc: Julia Lawall <julia@diku.dk>, rtc-linux@googlegroups.com Subject: [rtc-linux] [PATCH 4/6] rtc-at91sam9: Correct size given to memset Message-ID: <20100121005426.32665b23@linux.lan.towertech.it> In-Reply-To: <20100120235227.18902.31224.stgit@linux.lan.towertech.it> References: <20100120235227.18902.31224.stgit@linux.lan.towertech.it> Organization: Tower Technologies X-Mailer: Sylpheed X-This-Is-A-Real-Message: Yes Mime-Version: 1.0 X-Virus-Scanned: clamav-milter 0.95.3 at elettra X-Virus-Status: Clean X-Original-Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of a.zummo@towertech.it designates 213.215.222.70 as permitted sender) smtp.mail=a.zummo@towertech.it X-Original-Sender: azummo-google@towertech.it Reply-To: rtc-linux@googlegroups.com Precedence: list Mailing-list: list rtc-linux@googlegroups.com; contact rtc-linux+owners@googlegroups.com List-ID: <rtc-linux.googlegroups.com> List-Post: <http://groups.google.com/group/rtc-linux/post?hl=>, <mailto:rtc-linux@googlegroups.com> List-Help: <http://groups.google.com/support/?hl=>, <mailto:rtc-linux+help@googlegroups.com> List-Archive: <http://groups.google.com/group/rtc-linux?hl=> X-Thread-Url: http://groups.google.com/group/rtc-linux/t/94ecd7e6e5d87709 X-Message-Url: http://groups.google.com/group/rtc-linux/msg/db20c9cdd33c8d3a Sender: rtc-linux@googlegroups.com List-Unsubscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=>, <mailto:rtc-linux+unsubscribe@googlegroups.com> List-Subscribe: <http://groups.google.com/group/rtc-linux/subscribe?hl=>, <mailto:rtc-linux+subscribe@googlegroups.com> Content-Type: multipart/mixed; boundary=0015175cd1629a6386047da14ecf |
diff --git a/drivers/rtc/rtc-at91sam9.c b/drivers/rtc/rtc-at91sam9.c index 86c61f1..78a018b 100644 --- a/drivers/rtc/rtc-at91sam9.c +++ b/drivers/rtc/rtc-at91sam9.c @@ -161,7 +161,7 @@ static int at91_rtc_readalarm(struct device *dev, struct rtc_wkalrm *alrm) if (offset == 0) return -EILSEQ; - memset(alrm, 0, sizeof(alrm)); + memset(alrm, 0, sizeof(*alrm)); if (alarm != ALARM_DISABLED && offset != 0) { rtc_time_to_tm(offset + alarm, tm);