From: Josh Boyer <jdub@us.ibm.com>
To: "Jörn Engel" <joern@wohnheim.fh-wedel.de>
Cc: tom_gall@vnet.ibm.com, linux-mtd@lists.infradead.org, sallyt@us.ibm.com
Subject: Re: [PATCH] Add error checking to slram
Date: Mon, 10 Jan 2005 08:41:15 -0600 [thread overview]
Message-ID: <1105368075.10074.4.camel@windu.rchland.ibm.com> (raw)
In-Reply-To: <20050108205152.GF11728@wohnheim.fh-wedel.de>
On Sat, 2005-01-08 at 21:51 +0100, Jörn Engel wrote:
> On Wed, 5 January 2005 15:50:32 -0600, Josh Boyer wrote:
> >
> > The following patch fixes a couple issues I saw with the slram driver.
> >
> > 1) No error checking was being done at all.
> >
> > 2) There was no eraseblock size for slram, which made JFFS2 unhappy.
>
> Had a look at that one and imo it's jffs2 that should get fixed. But
> for the moment, your patch is fine.
No argument from me there. I've been sitting on this patch for a long
time and it was simply the easiest fix. Until JFFS2 gets fixed, this
should suffice.
> > Please take a look at the patch and commit if it looks good. Comments
> > are always welcome too :).
>
> Just one, rest looks fine to me.
<snip>
> > + if (from > mtd->size)
> > + return -EINVAL;
> > +
> > + if (from + len > mtd->size)
> > + len = mtd->size - from;
> > +
>
> My code is slightly different:
> if (len > mtd->size - from)
> ...
>
> And yes, this _can_ make a difference. ;)
It's early and I haven't had my coffee yet :). Care to educate me on
why that makes a difference?
josh
next prev parent reply other threads:[~2005-01-10 14:41 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-01-05 21:50 [PATCH] Add error checking to slram Josh Boyer
2005-01-08 20:51 ` Jörn Engel
2005-01-10 14:41 ` Josh Boyer [this message]
2005-01-10 14:55 ` Jörn Engel
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1105368075.10074.4.camel@windu.rchland.ibm.com \
--to=jdub@us.ibm.com \
--cc=joern@wohnheim.fh-wedel.de \
--cc=linux-mtd@lists.infradead.org \
--cc=sallyt@us.ibm.com \
--cc=tom_gall@vnet.ibm.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox