Re: [PATCH] radio-si470x.c: check-after-use
From: Oliver Neukum
Date: Tue Jan 29 2008 - 14:38:19 EST
Am Montag 28 Januar 2008 schrieb Tobias Lorenz:
> > Either "radio" can be NULL and this case has to be properly handled or
> > the NULL check is not required.
>
> These two lines should indeed better be inside the if statement. The patch for this is below.
No, in disconnect intfdata must be valid. Any check for NULL is wrong
there.
Regards
Oliver
--
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/