]> git.baikalelectronics.ru Git - kernel.git/commit
net: hsr: validate address B before copying to skb
authorMurali Karicheri <m-karicheri2@ti.com>
Fri, 17 Jul 2020 14:55:10 +0000 (10:55 -0400)
committerDavid S. Miller <davem@davemloft.net>
Sat, 18 Jul 2020 01:54:37 +0000 (18:54 -0700)
commit7a246a23621a9f9cd4ce24ae21050cb3e446679e
treeb5fa023619bb3a17ba4b78e53582c0f4f75e1ab1
parent70f41b16d1c4e2a5bce72d172f8a9f74438e7da8
net: hsr: validate address B before copying to skb

Validate MAC address before copying the same to outgoing frame
skb destination address. Since a node can have zero mac
address for Link B until a valid frame is received over
that link, this fix address the issue of a zero MAC address
being in the packet.

Signed-off-by: Murali Karicheri <m-karicheri2@ti.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/hsr/hsr_framereg.c