Commit a86abef1 authored by Cong Wang's avatar Cong Wang Committed by Greg Kroah-Hartman
Browse files

geneve: fix an uninitialized value in geneve_changelink()



[ Upstream commit 32818c07 ]

geneve_nl2info() sets 'df' conditionally, so we have to
initialize it by copying the value from existing geneve
device in geneve_changelink().

Fixes: 56c09de3 ("geneve: allow changing DF behavior after creation")
Reported-by: default avatar <syzbot+7ebc2e088af5e4c0c9fa@syzkaller.appspotmail.com>
Cc: Sabrina Dubroca <sd@queasysnail.net>
Signed-off-by: default avatarCong Wang <xiyou.wangcong@gmail.com>
Reviewed-by: default avatarSabrina Dubroca <sd@queasysnail.net>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 89b4f204
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment