]> git.dujemihanovic.xyz Git - u-boot.git/commit
tools: zynqmpimage: Check return values from file functions
authorMichal Simek <michal.simek@xilinx.com>
Tue, 5 Dec 2017 14:42:25 +0000 (15:42 +0100)
committerMichal Simek <michal.simek@xilinx.com>
Mon, 18 Dec 2017 08:32:06 +0000 (09:32 +0100)
commit6d0cbbd5967b42100253e4d8ceff610d1edf3897
tree56612066e0221e6ddd66347b83bdb3275b5ff8bc
parent3a55cb38c5335901be9550d77f7672ae37f0fa99
tools: zynqmpimage: Check return values from file functions

Check all return values from file functions.
In case of negative return exit immediately.
Also change fsize return value which can't be negative.

Reported-by: Coverity (CID: 23276, 23304, 169357)
Signed-off-by: Michal Simek <michal.simek@xilinx.com>
tools/zynqmpimage.c