1
0
mirror of https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git synced 2026-01-18 12:31:11 +00:00
Tao Ren 1c5c12ee30 net/ncsi: handle overflow when incrementing mac address
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>
2019-04-23 21:15:15 -07:00
..
2019-02-15 16:47:55 +02:00
2019-02-15 17:17:57 +01:00
2019-03-06 09:41:12 -08:00
2019-03-21 12:30:54 +01:00
2019-03-08 10:02:58 -08:00
2019-03-29 12:24:41 -07:00
2019-02-28 09:16:12 +01:00
2019-02-25 09:28:54 +01:00
2019-02-08 22:39:01 -08:00
2019-03-16 13:05:32 -07:00
2019-03-18 10:44:48 -06:00
2019-02-01 20:55:38 +01:00
2019-03-07 12:20:11 -08:00
2019-03-18 07:07:30 +01:00
2019-03-10 12:47:57 -07:00
2019-03-10 10:17:23 -07:00
2019-02-28 03:28:53 -05:00
2019-03-12 18:59:17 -07:00
2019-02-28 08:24:23 -07:00
2018-12-31 11:46:59 -08:00
2019-03-12 10:04:02 -07:00
2019-03-05 21:07:16 -08:00
2019-02-15 16:54:38 +01:00
2019-03-12 10:04:00 -07:00
2019-03-09 19:52:47 -08:00
2019-02-23 10:53:31 +01:00
2019-02-24 08:20:17 -07:00
2019-02-23 10:53:31 +01:00
2019-03-28 10:58:28 +01:00
2019-04-16 15:38:07 +02:00
2019-03-16 13:05:32 -07:00
2019-01-11 20:51:24 +01:00
2019-03-07 18:32:03 -08:00
2019-01-04 13:13:48 -08:00
2019-01-30 20:51:47 -05:00
2019-03-15 15:29:47 -07:00
2019-02-20 07:22:17 -07:00
2019-02-20 07:22:10 -07:00
2019-02-08 15:02:49 -08:00
2019-03-05 21:07:19 -08:00
2019-03-10 12:29:52 -07:00
2019-02-28 08:29:50 +01:00
2019-03-03 21:47:57 -08:00
2019-03-06 12:59:46 -08:00
2019-03-12 10:04:03 -07:00
2019-03-09 09:22:42 -08:00
2019-01-07 16:38:26 +01:00
2019-02-25 21:20:45 +01:00
2019-03-07 12:20:11 -08:00
2019-03-15 15:29:47 -07:00
2019-02-07 16:38:35 +01:00
2019-04-05 16:02:30 -10:00
2019-03-10 12:47:57 -07:00
2019-03-16 13:47:14 -07:00
2019-02-07 00:13:27 +01:00
2019-03-23 10:25:12 -07:00
2019-01-11 18:05:40 -08:00
2019-02-26 12:53:55 +01:00
2019-03-06 14:52:48 -08:00