From patchwork Tue Mar 26 08:15:33 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: egbert.eich@googlemail.com X-Patchwork-Id: 231121 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id CE1E22C008E for ; Tue, 26 Mar 2013 20:14:55 +1100 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 4BD904A0A9; Tue, 26 Mar 2013 10:14:24 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id RyzEUVUjMBuN; Tue, 26 Mar 2013 10:14:24 +0100 (CET) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id B90934A0A1; Tue, 26 Mar 2013 10:13:40 +0100 (CET) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id DD5B14A048 for ; Tue, 26 Mar 2013 10:08:27 +0100 (CET) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id YYoQjrKYx+I7 for ; Tue, 26 Mar 2013 10:08:26 +0100 (CET) X-Greylist: delayed 334 seconds by postgrey-1.27 at theia; Tue, 26 Mar 2013 10:08:22 CET X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mail-ee0-f49.google.com (mail-ee0-f49.google.com [74.125.83.49]) by theia.denx.de (Postfix) with ESMTPS id B58F44A049 for ; Tue, 26 Mar 2013 10:08:21 +0100 (CET) Received: by mail-ee0-f49.google.com with SMTP id d41so3565972eek.8 for ; Tue, 26 Mar 2013 02:08:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=x-received:from:to:cc:subject:date:message-id:x-mailer:in-reply-to :references; bh=7MBzqGEDU4Sd1HfkysYuuP7vvDrVPlWTKKZjBMxvuiw=; b=IrfBP/4UTaT0z20Nv7y2gtotAjQ7IzMuWO9tYs1HstPf+Mq8PxcrXkGjofvDG6ZQO+ McqYUQ+Z8eHOmzj/J5pu1hxa3qiNXVwjrw9OEVaLmkJ6feCfrjDw++Y+9pPsfzDS3rO/ xzX48lwTGrU+LWoZVpbfW88Jn/c6kcnkoQKwOLFPnnsx1MIcrz2GAD6doP3DDkufNB3/ KDe8RHW7ld791E2gK7MixGnLgbEhlbqNIpVhVXU6ZySioHkvx5B9Gr1FEEKo1o//6i36 6Egs3SJZpB5p24hgBZtbjYalD+RUOuE57Voysxhp+CHSx/tPHU0Eoo7pVI8I4YrYHB/h Q/6A== X-Received: by 10.15.101.200 with SMTP id bp48mr21970796eeb.38.1364288899989; Tue, 26 Mar 2013 02:08:19 -0700 (PDT) Received: from debian (p5DCF07C5.dip0.t-ipconnect.de. [93.207.7.197]) by mx.google.com with ESMTPS id bc1sm12339858eeb.11.2013.03.26.02.08.18 (version=TLSv1 cipher=RC4-SHA bits=128/128); Tue, 26 Mar 2013 02:08:19 -0700 (PDT) Received: from sles11.fritz.box (sles11.fritz.box [192.168.178.22]) by debian (Postfix) with ESMTP id EA7B313C77; Tue, 26 Mar 2013 10:08:17 +0100 (CET) From: egbert.eich@googlemail.com To: u-boot@lists.denx.de Date: Tue, 26 Mar 2013 04:15:33 -0400 Message-Id: <1364285735-2364-4-git-send-email-egbert.eich@gmail.com> X-Mailer: git-send-email 1.7.7 In-Reply-To: <1364285735-2364-1-git-send-email-egbert.eich@gmail.com> References: <1364285735-2364-1-git-send-email-egbert.eich@gmail.com> X-Mailman-Approved-At: Tue, 26 Mar 2013 10:13:35 +0100 Cc: Egbert Eich Subject: [U-Boot] [PATCH 3/5] fs/fat: Don't multiply fatsize with sector size. X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de From: Egbert Eich Here at this place we need the fat size in sectors not bytes. Signed-off-by: Egbert Eich --- fs/fat/fat_write.c | 1 - 1 files changed, 0 insertions(+), 1 deletions(-) diff --git a/fs/fat/fat_write.c b/fs/fat/fat_write.c index b4022aa..fd07240 100644 --- a/fs/fat/fat_write.c +++ b/fs/fat/fat_write.c @@ -120,7 +120,6 @@ static int flush_fat_buffer(fsdata *mydata) __u8 *bufptr = mydata->fatbuf; __u32 startblock = mydata->fatbufnum * FATBUFBLOCKS; - fatlength *= mydata->sect_size; startblock += mydata->fat_sect; if (getsize > fatlength)