Yangbo Lu db30adc931 layerscape: fix get_device_file() function of restool
The restool failed to work with current gcc-7.3.0-musl.
This patch is to add a restool fix-up patch to fix
multiple problems encountered in the get_device_file()
function:
 - The deprecated atoi() function is replaced by strtoul
 - An invalid memory access was being performed by using
 memory from dir->d_name even after closedir(). This is
 fixed by a strdup() on the device filename.
 - Also, error prints now print any relevant error code.

Signed-off-by: Yangbo Lu <yangbo.lu@nxp.com>
2018-09-22 21:20:58 +02:00
..
2018-09-09 21:38:10 +02:00
2016-12-16 22:39:22 +01:00
2018-08-28 13:46:16 +02:00
2018-04-27 09:59:28 +02:00
2018-08-02 15:03:21 +02:00
2018-06-26 08:57:25 +02:00
2018-07-13 17:22:53 +02:00
2018-07-31 20:40:33 +02:00
2017-10-15 00:24:22 +02:00