mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
bareudp: Fixed configuration to avoid having garbage values
Code to initialize the conf structure while gathering the configuration
of the device was missing.
Fixes: 571912c69f
("net: UDP tunnel encapsulation module for tunnelling different protocols like MPLS, IP, NSH etc.")
Signed-off-by: Martin <martin.varghese@nokia.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
807eaf9968
commit
b15bb8817f
@ -552,6 +552,8 @@ static int bareudp_validate(struct nlattr *tb[], struct nlattr *data[],
|
||||
static int bareudp2info(struct nlattr *data[], struct bareudp_conf *conf,
|
||||
struct netlink_ext_ack *extack)
|
||||
{
|
||||
memset(conf, 0, sizeof(*conf));
|
||||
|
||||
if (!data[IFLA_BAREUDP_PORT]) {
|
||||
NL_SET_ERR_MSG(extack, "port not specified");
|
||||
return -EINVAL;
|
||||
|
Loading…
Reference in New Issue
Block a user