From patchwork Fri Feb 7 09:21:23 2014 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?C=C3=A9dric_Le_Goater?= X-Patchwork-Id: 327259 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from ozlabs.org (localhost [IPv6:::1]) by ozlabs.org (Postfix) with ESMTP id 660D92C0363 for ; Thu, 6 Mar 2014 12:58:05 +1100 (EST) Received: from e06smtp12.uk.ibm.com (e06smtp12.uk.ibm.com [195.75.94.108]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 228192C00A5 for ; Fri, 7 Feb 2014 20:21:41 +1100 (EST) Received: from /spool/local by e06smtp12.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 7 Feb 2014 09:21:36 -0000 Received: from d06dlp03.portsmouth.uk.ibm.com (9.149.20.15) by e06smtp12.uk.ibm.com (192.168.101.142) with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted; Fri, 7 Feb 2014 09:21:35 -0000 Received: from b06cxnps3075.portsmouth.uk.ibm.com (d06relay10.portsmouth.uk.ibm.com [9.149.109.195]) by d06dlp03.portsmouth.uk.ibm.com (Postfix) with ESMTP id 9AE021B0806E for ; Fri, 7 Feb 2014 09:21:07 +0000 (GMT) Received: from d06av01.portsmouth.uk.ibm.com (d06av01.portsmouth.uk.ibm.com [9.149.37.212]) by b06cxnps3075.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id s179LMDZ61866126 for ; Fri, 7 Feb 2014 09:21:22 GMT Received: from d06av01.portsmouth.uk.ibm.com (localhost [127.0.0.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVout) with ESMTP id s179LXXH009172 for ; Fri, 7 Feb 2014 02:21:34 -0700 Received: from smtp.lab.toulouse-stg.fr.ibm.com (srv01.lab.toulouse-stg.fr.ibm.com [9.101.4.1]) by d06av01.portsmouth.uk.ibm.com (8.14.4/8.14.4/NCO v10.0 AVin) with ESMTP id s179LXSd009151; Fri, 7 Feb 2014 02:21:33 -0700 Received: from hermes.ibm.com (icon-9-164-189-109.megacenter.de.ibm.com [9.164.189.109]) by smtp.lab.toulouse-stg.fr.ibm.com (Postfix) with ESMTP id C2A29210FFD; Fri, 7 Feb 2014 10:21:32 +0100 (CET) From: =?UTF-8?q?C=C3=A9dric=20Le=20Goater?= To: tony@bakeyournoodle.com Subject: [PATCH 1/2] fix memset size when opening a file Date: Fri, 7 Feb 2014 10:21:23 +0100 Message-Id: <1391764884-3929-1-git-send-email-clg@fr.ibm.com> X-Mailer: git-send-email 1.7.10.4 MIME-Version: 1.0 X-TM-AS-MML: disable X-Content-Scanned: Fidelis XPS MAILER x-cbid: 14020709-8372-0000-0000-000008935C81 X-Mailman-Approved-At: Thu, 06 Mar 2014 12:58:00 +1100 Cc: yaboot-devel@lists.ozlabs.org X-BeenThere: yaboot-devel@lists.ozlabs.org X-Mailman-Version: 2.1.16 Precedence: list List-Id: Technical and development discussion regarding yaboot List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: yaboot-devel-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Yaboot-devel" Signed-off-by: Cédric Le Goater --- second/file.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/second/file.c b/second/file.c index 8412075689e0..cb79e7877282 100644 --- a/second/file.c +++ b/second/file.c @@ -667,7 +667,7 @@ int open_file(struct boot_fspec_t* spec, struct boot_file_t* file) { int result; - memset(file, 0, sizeof(struct boot_file_t*)); + memset(file, 0, sizeof(*file)); file->fs = &fs_default; DEBUG_F("dev_path = %s\nfile_name = %s\npartition = %d\n",