Re: [PATCH] net: ipv4: fib_semantics: fix uninitialized variable

From: David Miller
Date: Sun Jun 09 2019 - 15:52:20 EST


From: "Enrico Weigelt, metux IT consult" <info@xxxxxxxxx>
Date: Thu, 6 Jun 2019 16:43:17 +0200

> From: Enrico Weigelt <info@xxxxxxxxx>
>
> fix an uninitialized variable:
>
> CC net/ipv4/fib_semantics.o
> net/ipv4/fib_semantics.c: In function 'fib_check_nh_v4_gw':
> net/ipv4/fib_semantics.c:1027:12: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized]
> if (!tbl || err) {
> ^~
>
> Signed-off-by: Enrico Weigelt <info@xxxxxxxxx>

Applied.