Richard Spiegel
7b89a28149
util/amdfwtool/amdfwtool.c: Check fstat return
...
Funtion fstat will return -1 if there's any error, 0 if successful.
Check that fstat return is equal to 0, print error message and exit if
not 0.
This fixes CIDs 1353018 and 1353020
BUG=b:72062481
TEST=Build no errors
Change-Id: I83284d9125c75a29471f213f88b9181d5edba2e6
Signed-off-by: Richard Spiegel <richard.spiegel@silverbackltd.com>
Reviewed-on: https://review.coreboot.org/23827
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2018-02-22 09:59:40 +00:00
..
2017-09-06 04:31:30 +00:00
2015-10-31 21:37:39 +01:00
2018-02-22 09:59:40 +00:00
2017-06-07 12:04:50 +02:00
2016-03-08 17:40:05 +01:00
2014-12-19 18:55:34 +01:00
2018-01-30 23:17:58 +00:00
2016-03-11 18:48:06 +01:00
2018-01-23 05:21:48 +00:00
2018-02-16 22:40:20 +00:00
2018-02-10 23:49:58 +00:00
2018-01-20 16:11:44 +00:00
2018-02-19 22:00:16 +00:00
2016-08-03 18:01:32 +02:00
2016-07-30 19:34:20 +02:00
2018-01-15 01:15:27 +00:00
2018-01-31 16:44:25 +00:00
2016-01-26 00:25:19 +01:00
2017-04-25 18:46:04 +02:00
2016-01-26 00:25:19 +01:00
2017-03-29 05:16:49 +02:00
2015-10-31 21:37:39 +01:00
2018-01-23 05:33:02 +00:00
2014-08-12 09:02:44 +02:00
2018-01-23 05:22:40 +00:00
2017-06-27 18:26:01 +00:00
2016-12-15 23:47:09 +01:00
2017-10-22 01:51:17 +00:00
2017-11-30 17:19:08 +00:00
2018-02-06 16:11:45 +00:00
2016-07-31 19:23:29 +02:00
2018-01-23 05:17:44 +00:00
2017-10-29 08:48:56 +00:00
2017-08-18 15:32:08 +00:00
2016-12-12 17:53:32 +01:00
2018-01-29 15:34:59 +00:00
2016-02-11 14:16:08 +01:00
2018-01-23 05:17:44 +00:00
2017-04-24 19:11:34 +02:00
2017-08-22 10:10:49 +00:00
2016-01-26 00:25:19 +01:00
2017-04-24 19:19:39 +02:00
2018-02-06 15:29:30 +00:00
2017-06-27 18:26:01 +00:00
2016-02-26 07:00:33 +01:00
2018-01-17 16:54:22 +00:00
2018-02-20 23:14:06 +00:00
2016-03-16 15:24:10 +01:00
2017-09-27 16:38:18 +00:00
2018-01-25 16:50:17 +00:00
2017-10-14 11:28:14 +00:00
2018-01-25 16:50:17 +00:00
2015-10-31 21:37:39 +01:00
2018-01-15 00:42:43 +00:00
2018-02-06 16:14:33 +00:00
2015-10-31 21:37:39 +01:00
2017-07-21 15:45:41 +00:00
2017-06-07 12:04:50 +02:00
2017-09-02 15:21:35 +00:00