diff options
| author | Peng Fan <[email protected]> | 2016-11-04 10:33:15 +0800 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2016-11-05 07:27:44 -0400 |
| commit | 2a380cccc27e3964621f74f935cdcafbc21bbe35 (patch) | |
| tree | 7799aabb6aa8f5e9652fde42a889a4d98e7de91e /scripts | |
| parent | ae3de0d8caf1822da076b2cc947ea89a0b560e05 (diff) | |
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 <[email protected]>
Cc: Stefano Babic <[email protected]>
Cc: Tom Rini <[email protected]>
Reported-by: Coverity (CID: 153926)
Reviewed-by: Tom Rini <[email protected]>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions
