Patchwork Suggested patch: reset errno after isatty()

login
register
mail settings
Submitter Ketil Froyn
Date Nov. 25, 2010, 8:58 a.m.
Message ID <AANLkTikSEH4SOTYv9oqniP6-pPtRc0Y=M2+8hvdAirRg@mail.gmail.com>
Download mbox | patch
Permalink /patch/73036/
State New
Headers show

Comments

Ketil Froyn - Nov. 25, 2010, 8:58 a.m.
On Wed, Nov 24, 2010 at 10:36 PM, Mike Frysinger <vapier.adi@gmail.com> wrote:
>
> awesome.  can you post your signed-off-by tag and/or a proper git patch please ?
> -mike

I'm pretty new to git. Hope this is right.

Cheers, Ketil
Artem Bityutskiy - Nov. 29, 2010, 3:07 p.m.
On Thu, 2010-11-25 at 09:58 +0100, Ketil Froyn wrote:
> On Wed, Nov 24, 2010 at 10:36 PM, Mike Frysinger <vapier.adi@gmail.com> wrote:
> >
> > awesome.  can you post your signed-off-by tag and/or a proper git patch please ?
> > -mike
> 
> I'm pretty new to git. Hope this is right.

Pushed this patch to the mtd-utils tree, thanks!

Patch

From aea696a42d118598ca582180a89c7e5c0fe13b4e Mon Sep 17 00:00:00 2001
From: Ketil Froyn <ketil@froyn.name>
Date: Thu, 25 Nov 2010 09:52:12 +0100
Subject: [PATCH] mtd-utils: libmtd: legacy code OOB

legacy_get_dev_info() forgot to set the OOB size

Signed-off-by: Ketil Froyn <ketil@froyn.name>
---
 lib/libmtd_legacy.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/lib/libmtd_legacy.c b/lib/libmtd_legacy.c
index 7488275..d6c3938 100644
--- a/lib/libmtd_legacy.c
+++ b/lib/libmtd_legacy.c
@@ -261,6 +261,7 @@  int legacy_get_dev_info(const char *node, struct mtd_dev_info *mtd)
 	mtd->size = ui.size;
 	mtd->eb_size = ui.erasesize;
 	mtd->min_io_size = ui.writesize;
+	mtd->oob_size = ui.oobsize;
 
 	if (mtd->min_io_size <= 0) {
 		errmsg("mtd%d (%s) has insane min. I/O unit size %d",
-- 
1.7.0.4