summaryrefslogtreecommitdiffstats
path: root/net/ipv4/fib_frontend.c
diff options
context:
space:
mode:
authorWANG Cong2017-07-20 20:27:57 +0200
committerDavid S. Miller2017-07-21 00:23:22 +0200
commit153711f9421be5dbc973dc57a4109dc9d54c89b1 (patch)
tree06308fcd9cd16cf966d238f9ee60e6bac1a62e3f /net/ipv4/fib_frontend.c
parentnet: dsa: b53: Add missing ARL entries for BCM53125 (diff)
downloadkernel-qcow2-linux-153711f9421be5dbc973dc57a4109dc9d54c89b1.tar.gz
kernel-qcow2-linux-153711f9421be5dbc973dc57a4109dc9d54c89b1.tar.xz
kernel-qcow2-linux-153711f9421be5dbc973dc57a4109dc9d54c89b1.zip
rtnetlink: allocate more memory for dev_set_mac_address()
virtnet_set_mac_address() interprets mac address as struct sockaddr, but upper layer only allocates dev->addr_len which is ETH_ALEN + sizeof(sa_family_t) in this case. We lack a unified definition for mac address, so just fix the upper layer, this also allows drivers to interpret it to struct sockaddr freely. Reported-by: David Ahern <dsahern@gmail.com> Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/fib_frontend.c')
0 files changed, 0 insertions, 0 deletions