1
0
mirror of https://xff.cz/git/u-boot/ synced 2026-01-29 05:39:21 +01:00
Files
u-boot-megous/tools
Peng Fan 2a380cccc2 tools: imximage: check return value when open the plugin file
Check return value when open the plugin file.

Coverity report:
** CID 153926:  Error handling issues  (NEGATIVE_RETURNS)
/tools/imximage.c: 542 in copy_plugin_code()

   ifd = open(plugin_file, O_RDONLY|O_BINARY);
>>>  CID 153926:  Error handling issues  (NEGATIVE_RETURNS)
>>> "ifd" is passed to a parameter that cannot be negative.

Signed-off-by: Peng Fan <peng.fan@nxp.com>
Cc: Stefano Babic <sbabic@denx.de>
Cc: Tom Rini <trini@konsulko.com>
Reported-by: Coverity (CID: 153926)
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-11-05 07:27:44 -04:00
..
2016-05-02 18:37:09 -04:00
2016-05-02 18:37:09 -04:00
2016-03-22 12:16:13 -04:00
2009-11-24 23:43:18 +01:00
2016-10-24 10:57:16 +02:00
2015-11-29 16:02:44 +01:00
2016-02-21 11:09:19 +01:00
2009-04-28 01:16:46 +02:00
2015-11-16 17:22:18 -05:00