Re: [PATCH] ide-tape: Avoid potential null pointer dereference in idetape_abort_pipeline()

From: Jesper Juhl
Date: Fri Mar 14 2008 - 21:14:14 EST


On 15/03/2008, Johannes Weiner <hannes@xxxxxxxxxxxx> wrote:
> Hi Jesper,
>
>
> Jesper Juhl <jesper.juhl@xxxxxxxxx> writes:
>
> > If a NULL 'new_last_stage' is passed to idetape_abort_pipeline() then
> > we'll dereference a NULL pointer and go *boom*.
> > The function does test for a null pointer, unfortunately it only does it
> > after having already dereferenced it.
>
>
> Did you hit an oops because of this?
>

No, I did not.


--
Jesper Juhl <jesper.juhl@xxxxxxxxx>
Don't top-post http://www.catb.org/~esr/jargon/html/T/top-post.html
Plain text mails only, please http://www.expita.com/nomime.html
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/