On Tue, May 20, 2014 at 11:34:25PM +0200, Rickard Strandqvist wrote: > There is otherwise a risk of a possible null pointer dereference. > > Was largely found by using a static code analysis program called cppcheck. > > Signed-off-by: Rickard Strandqvist <rickard_strandqv...@spectrumdigital.se>
This is a real bug. :) Reviewed-by: Dan Carpenter <dan.carpen...@oracle.com> Btw, I have named this kind of bug a "one err bug" because there is one "err:" label which handles all the error handling. It is a very common kind of bug. regards, dan carpenter -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/