summaryrefslogtreecommitdiff
path: root/lib/test_overflow.c
diff options
context:
space:
mode:
authorTao Ren <taoren@fb.com>2019-04-24 04:43:32 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-05-02 11:02:56 +0300
commit72f71005903d92b5bbfe1add54089d9e8cfd7639 (patch)
treeb8fbaa5b02221d370f610606ae7c0ecc6df9ab20 /lib/test_overflow.c
parent19f6d3f49b28db54afa89d32b50523805d5ff454 (diff)
downloadlinux-72f71005903d92b5bbfe1add54089d9e8cfd7639.tar.xz
net/ncsi: handle overflow when incrementing mac address
[ Upstream commit 1c5c12ee308aacf635c8819cd4baa3bd58f8a8b7 ] Previously BMC's MAC address is calculated by simply adding 1 to the last byte of network controller's MAC address, and it produces incorrect result when network controller's MAC address ends with 0xFF. The problem can be fixed by calling eth_addr_inc() function to increment MAC address; besides, the MAC address is also validated before assigning to BMC. Fixes: cb10c7c0dfd9 ("net/ncsi: Add NCSI Broadcom OEM command") Signed-off-by: Tao Ren <taoren@fb.com> Acked-by: Jakub Kicinski <jakub.kicinski@netronome.com> Acked-by: Samuel Mendoza-Jonas <sam@mendozajonas.com> Signed-off-by: David S. Miller <davem@davemloft.net> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'lib/test_overflow.c')
0 files changed, 0 insertions, 0 deletions