Home
last modified time | relevance | path

Searched hist:"153711 f9421be5dbc973dc57a4109dc9d54c89b1" (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/net/core/
H A Drtnetlink.cdiff 153711f9421be5dbc973dc57a4109dc9d54c89b1 Thu Jul 20 13:27:57 CDT 2017 WANG Cong <xiyou.wangcong@gmail.com> 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>