[PATCH] Prevent JFFS2 from OOPS:ing due to missing error checks.

Joakim Tjernlund joakim.tjernlund at transmode.se
Mon Jun 25 03:15:15 EDT 2007


On Mon, 2007-06-25 at 08:30 +0400, Vitaly Wool wrote:
> On 6/24/07, Joakim Tjernlund <joakim.tjernlund at transmode.se> wrote:
> > >From 474425d656766b6c6229312771be5f3e8d0a839f Mon Sep 17 00:00:00 2001
> > From: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> > Date: Sun, 24 Jun 2007 19:22:29 +0200
> > Subject: [PATCH] Prevent JFFS2 from OOPS:ing due to missing error checks.
> >
> >
> > Signed-off-by: Joakim Tjernlund <Joakim.Tjernlund at transmode.se>
> 
> +               return ERR_PTR(PTR_ERR(hold_err)); ?
> 

Yes, that is to get the types correct. Otherwise I need to do
something like:
unsigned long hold_err = (unsigned long) fn->raw;
...
return ERR_PTR(hold_err);



More information about the linux-mtd mailing list