Re: [PATCH] tty: Fix potentialy used uninitialized variable

From: Richard Weinberger
Date: Sat Aug 08 2015 - 05:37:36 EST


On Sat, Aug 8, 2015 at 11:24 AM, Tomer Barletz <barletz@xxxxxxxxx> wrote:
> Initialize size to 0, as it may be used uninitialized in case
> read_mem32() fails.

Instead of papering over the issue better cleanup read_mem32() such that
a failure can be detected. :-)

--
Thanks,
//richard
--
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/