Andy Shevchenko
1f8e6985db
IOMUX: Preserve console list if realloc() fails
...
It's realloc() 101 to avoid `foo = realloc(foo, ...);` call
due to getting a memory leak.
Actually it's not clear why realloc() has been used here.
If we shrink the array, the memcpy() overwrites it anyway
with the contents of a new array. If it becomes bigger,
same story.
Drop useless realloc() for good and thus preserve console list
in case of failed allocation.
Fixes: 16a28ef219
("IOMUX: Add console multiplexing support.")
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com >
Reviewed-by: Simon Glass <sjg@chromium.org >
2021-01-15 14:38:00 -05:00
..
2020-08-26 09:19:16 +02:00
2021-01-15 14:36:12 -05:00
2020-05-18 21:19:18 -04:00
2020-10-22 09:54:53 -04:00
2020-08-24 14:11:13 -04:00
2020-05-18 21:19:23 -04:00
2020-10-06 09:07:54 -06:00
2021-01-15 14:36:11 -05:00
2020-05-18 17:33:33 -04:00
2021-01-15 14:36:12 -05:00
2020-05-18 21:19:18 -04:00
2020-07-22 12:32:42 +02:00
2020-12-04 19:48:29 -05:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-12-01 14:12:28 -05:00
2020-10-22 09:54:53 -04:00
2020-12-04 16:10:01 -05:00
2020-05-18 18:36:55 -04:00
2020-12-01 10:33:38 -05:00
2020-11-19 09:45:49 -05:00
2021-01-15 14:38:00 -05:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2020-05-18 21:19:18 -04:00
2021-01-15 14:36:12 -05:00
2020-07-25 14:46:57 -06:00
2021-01-12 10:58:05 +05:30
2020-05-18 21:19:18 -04:00
2020-06-16 11:36:30 -04:00
2020-05-18 21:19:18 -04:00
2020-06-02 13:06:12 -04:00
2020-10-12 21:30:38 -04:00
2020-12-22 20:39:25 -07:00
2020-10-12 21:30:37 -04:00
2021-01-13 02:38:00 +01:00
2020-06-12 13:14:07 -04:00
2021-01-11 23:19:33 +00:00
2021-01-15 14:38:00 -05:00
2020-05-18 21:19:23 -04:00
2021-01-15 14:36:11 -05:00
2020-12-04 19:48:29 -05:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-12-13 16:51:09 -07:00
2020-05-18 21:19:18 -04:00
2020-10-10 16:50:11 -04:00
2020-10-10 16:50:12 -04:00
2021-01-15 14:36:11 -05:00
2020-12-03 21:22:49 +01:00
2020-10-30 14:20:27 +01:00
2020-05-18 21:19:18 -04:00
2020-01-24 23:06:49 +05:30
2020-05-07 09:01:42 -04:00
2020-05-18 21:19:23 -04:00
2020-05-18 21:19:18 -04:00
2020-06-28 01:03:09 +02:00
2021-01-15 14:38:00 -05:00
2020-12-03 21:22:49 +01:00
2020-12-13 16:51:09 -07:00
2020-05-18 21:19:18 -04:00
2021-01-06 07:57:33 -05:00
2020-05-18 21:19:23 -04:00
2020-10-22 09:54:53 -04:00