From: Wolfgang Denk Date: Tue, 10 Aug 2010 23:10:58 +0200 Subject: [U-Boot] [PATCH] disk/part.c: 'usb storage' avoiding overflow when output capacity In-Reply-To: <1281269139-8194-1-git-send-email-slyfox@inbox.ru> References: <4C5E8066.9020002@mvista.com> <1281269139-8194-1-git-send-email-slyfox@inbox.ru> Message-ID: <20100810211058.ECBFB207@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Sergei Trofimovich, In message <1281269139-8194-1-git-send-email-slyfox@inbox.ru> you wrote: > From: Sergei Trofimovich > > Before: > Marvell>> usb storage > Device 0: Vendor: StoreJet Rev: Prod: Transcend > Type: Hard Disk > Capacity: 28759.9 MB = 28.0 GB (488397168 x 512) > After: > Marvell>> usb storage > Device 0: Vendor: StoreJet Rev: Prod: Transcend > Type: Hard Disk > Capacity: 238475.1 MB = 232.8 GB (488397168 x 512) > > Signed-off-by: Sergei Trofimovich > --- > Changes since V1: > Fixed space usage instead of tabs. Noticed by Sergei Shtylyov. > > disk/part.c | 28 +++++++++++++++++++++++----- > 1 files changed, 23 insertions(+), 5 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de "Where shall I begin, please your Majesty?" he asked. "Begin at the beginning," the King said, gravely, "and go on till you come to the end: then stop." - Alice's Adventures in Wonderland, Lewis Carroll