1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-01 01:07:11 +01:00
Files
u-boot-megous/cmd
Simon Goldschmidt 87c7fb396a cmd: nvedit: env_get_f must check for env_get_char error codes
env_get_f calls env_get_char to load single characters from the
environment. However, the return value of env_get_char was not
checked for errors. Now if the env driver does not support the
.get_char call, env_get_f did not notice this and looped over the
whole size of the environment, calling env_get_char over 8000
times with the default settings, just to return an error in the
end.

Fix this by checking if env_get_char returns < 0.

Signed-off-by: Simon Goldschmidt <sgoldschmidt@de.pepperl-fuchs.com>
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
2018-01-31 18:45:10 -05:00
..
2018-01-19 15:49:26 -05:00
2017-02-08 15:56:28 -05:00
2017-07-03 17:35:28 -04:00
2017-11-29 22:30:50 -05:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2016-09-09 15:53:14 -04:00
2017-06-16 10:11:42 -04:00
2016-05-02 18:37:09 -04:00
2017-10-16 09:42:51 -04:00
2017-08-16 08:30:24 -04:00
2016-04-18 17:11:36 -04:00
2017-01-20 09:15:24 -05:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2018-01-26 13:22:40 -05:00
2017-02-08 15:56:28 -05:00
2017-08-16 08:30:24 -04:00
2017-12-07 15:17:00 -05:00
2017-11-15 10:54:06 -08:00
2017-08-16 08:30:24 -04:00
2017-10-16 09:42:51 -04:00
2016-01-25 10:39:43 -05:00
2017-12-07 15:17:00 -05:00
2017-08-16 08:30:24 -04:00
2016-10-06 20:57:42 -04:00
2017-08-16 08:22:18 -04:00
2017-08-11 15:41:51 -04:00
2017-06-12 08:37:55 -04:00
2018-01-19 15:49:29 -05:00
2017-08-16 08:30:24 -04:00
2017-08-16 08:30:24 -04:00
2018-01-10 11:11:06 +01:00
2017-08-16 08:30:24 -04:00
2016-03-27 09:12:55 -04:00
2017-09-12 10:08:05 +02:00
2017-08-16 08:30:24 -04:00