]> Git Repo - J-u-boot.git/commit - tools/zynqmpimage.c
tools: zynqmpimage: Check return values from file functions
authorMichal Simek <[email protected]>
Tue, 5 Dec 2017 14:42:25 +0000 (15:42 +0100)
committerMichal Simek <[email protected]>
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 <[email protected]>
tools/zynqmpimage.c
This page took 0.033332 seconds and 4 git commands to generate.