Re: [U-Boot] [PATCH] tools: imximage: check return value when open the plugin file

2016-11-04 Thread Tom Rini
On Fri, Nov 04, 2016 at 10:33:15AM +0800, Peng Fan wrote: > 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

[U-Boot] [PATCH] tools: imximage: check return value when open the plugin file

2016-11-04 Thread Peng Fan
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