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

2015-08-08 Thread Richard Weinberger
On Sat, Aug 8, 2015 at 11:24 AM, Tomer Barletz 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 li

[PATCH] tty: Fix potentialy used uninitialized variable

2015-08-08 Thread Tomer Barletz
Initialize size to 0, as it may be used uninitialized in case read_mem32() fails. Signed-off-by: Tomer Barletz --- drivers/tty/nozomi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/tty/nozomi.c b/drivers/tty/nozomi.c index 80f9de9..d70e9e4 100644 --- a/drivers/tty/