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-11-20 12:35:25 -05:00
2018-12-06 14:38:03 -08:00
2018-10-28 09:26:39 -04:00
2018-07-23 14:33:21 -04:00
2018-12-12 12:14:22 -05:00
2018-10-28 09:26:39 -04:00
2018-12-10 10:04:45 +01:00
2018-12-06 23:26:32 -05:00
2018-12-15 11:49:56 -05:00
2018-12-18 09:56:26 +08:00
2018-05-07 09:34:12 -04:00
2018-12-10 17:19:59 -05:00
2018-05-07 09:34:12 -04:00
2018-11-13 18:53:10 +05:30
2018-12-19 15:23:00 +01:00
2018-10-28 09:26:39 -04:00
2018-12-12 12:14:25 -05:00
2018-12-20 17:12:25 +01:00
2018-12-19 15:23:01 +01:00
2018-12-06 23:26:33 -05:00
2018-12-12 06:06:14 +01:00
2018-12-05 06:01:35 -07:00
2018-08-10 10:27:32 -04:00
2018-10-28 09:26:39 -04:00
2018-05-07 09:34:12 -04:00
2018-12-19 15:23:01 +01:00
2018-12-19 15:23:01 +01:00
2018-12-05 15:06:24 -05:00
2018-12-26 21:35:52 -05:00
2018-11-14 09:16:27 -08:00
2018-05-07 09:34:12 -04:00
2018-12-03 19:09:44 +01:00
2018-05-07 09:34:12 -04:00
2018-12-14 17:59:09 +01:00
2018-12-26 21:21:07 -05:00
2018-12-10 10:19:09 -05:00
2018-10-24 21:57:16 +05:30
2018-12-06 14:37:51 -08:00
2018-12-10 10:04:44 +01:00
2018-09-11 08:32:55 -04:00
2018-10-28 09:26:39 -04:00
2018-12-03 10:44:10 -05:00
2018-11-14 09:16:27 -08:00
2018-12-18 09:56:54 +08:00
2018-07-19 16:31:38 -04:00
2018-05-07 09:34:12 -04:00
2018-12-13 16:37:10 -07:00
2018-12-19 15:23:01 +01:00
2018-05-07 09:34:12 -04:00
2018-12-05 06:01:34 -07:00
2018-12-15 11:49:19 -05:00
2018-05-07 09:34:12 -04:00
2018-12-18 09:56:26 +08:00
2018-11-29 09:30:06 -07:00
2018-12-14 17:59:10 +01:00
2018-12-05 20:32:25 -05:00
2018-11-14 09:16:28 -08:00
2018-12-06 17:15:15 -05:00
2018-11-16 16:51:55 -05:00
2018-12-03 10:44:10 -05:00
2018-12-06 23:26:32 -05:00
2018-12-14 17:59:09 +01:00