Michal Simek
7b4ea2d888
phy: Fix u-boot coruption when fixed-phy is used
...
When fixed-link phy is used subnode offset is used as phy address. This
number is bigger then space allocated for bus structure (allocated via
mdio_alloc).
bus->phymap[] array has PHY_MAX_ADDR size (32).
That's why writing bus->phymap[addr] where addr is < 0 or > PHY_MAX_ADDR
is causing write to memory which can caused full U-Boot crash.
The patch is checking if address is in correct range.
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
2018-12-26 21:35:52 -05:00
..
2018-12-06 14:37:42 -08:00
2018-10-10 12:45:23 -05:00
2018-12-06 14:37:19 -08:00
2018-10-28 09:26:39 -04:00
2018-12-26 21:35:52 -05:00
2018-11-05 10:42:01 -06:00
2018-05-07 09:34:12 -04:00
2017-06-01 07:03:11 -06:00
2015-11-12 08:26:59 +08:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2016-10-23 18:33:18 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-19 15:23:00 +01:00
2018-12-19 15:23:01 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-10 12:28:52 -05:00
2018-11-26 14:40:10 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2015-04-18 11:11:33 -06:00
2018-05-07 09:34:12 -04:00
2018-08-13 22:35:42 +02:00
2018-11-27 21:06:53 +05:30
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-10 12:28:52 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-24 14:45:38 -05:00
2018-10-24 14:45:38 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-11-05 10:41:58 -06:00
2018-11-05 10:41:56 -06:00
2018-05-29 14:45:03 +08:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-10-04 21:15:46 +02:00
2018-12-19 15:23:01 +01:00
2018-05-07 09:34:12 -04:00
2013-06-24 19:11:14 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-19 15:23:01 +01:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-11-05 10:41:56 -06:00
2018-07-26 14:08:21 -05:00
2018-07-26 14:08:21 -05:00
2018-10-09 14:18:17 -05:00
2018-10-24 14:45:38 -05:00
2018-10-10 12:28:52 -05:00
2018-04-08 23:00:58 -04:00
2013-04-01 16:33:52 -04:00
2013-08-19 12:34:18 -05:00
2018-05-07 09:34:12 -04:00
2018-10-10 12:28:52 -05:00
2018-10-09 14:18:21 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-06-19 06:15:55 +02:00
2018-10-10 12:28:52 -05:00
2018-10-10 12:28:52 -05:00
2018-12-05 06:01:34 -07:00
2018-07-26 14:08:18 -05:00
2018-10-10 12:29:00 -05:00
2018-06-19 06:15:55 +02:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-06-13 13:54:17 -05:00
2018-11-23 11:01:09 +05:30
2018-06-13 13:54:15 -05:00
2018-06-13 13:54:15 -05:00
2018-05-07 09:34:12 -04:00
2016-09-23 17:55:42 -04:00
2018-06-13 13:54:16 -05:00
2018-05-07 09:34:12 -04:00
2018-05-07 09:34:12 -04:00
2018-12-03 16:22:06 +01:00