mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2024-11-24 23:50:53 +07:00
netpoll: fix an uninitialized variable
Fengguang reported: net/core/netpoll.c: In function 'netpoll_setup': net/core/netpoll.c:1049:6: warning: 'err' may be used uninitialized in this function [-Wmaybe-uninitialized] in !CONFIG_IPV6 case, we may error out without initializing 'err'. Reported-by: Fengguang Wu <fengguang.wu@intel.com> Cc: David S. Miller <davem@davemloft.net> Signed-off-by: Cong Wang <amwang@redhat.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
9647bb80a5
commit
e39363a9de
@ -1140,6 +1140,7 @@ int netpoll_setup(struct netpoll *np)
|
||||
#else
|
||||
np_err(np, "IPv6 is not supported %s, aborting\n",
|
||||
np->dev_name);
|
||||
err = -EINVAL;
|
||||
goto put;
|
||||
#endif
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user