summaryrefslogtreecommitdiff
path: root/lib/rsa
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2018-06-12 00:04:59 -0600
committerTom Rini <trini@konsulko.com>2018-06-19 07:31:44 -0400
commitdd0ee9ea857c4e4d927ae41791c1626fd57c301d (patch)
tree231962584a8b572586605b81e42c3f9fa0ebc4ef /lib/rsa
parente178db1d7736a92951fdc7f1fd9b8ecf4d2877ba (diff)
downloadu-boot-dd0ee9ea857c4e4d927ae41791c1626fd57c301d.tar.gz
u-boot-dd0ee9ea857c4e4d927ae41791c1626fd57c301d.tar.bz2
u-boot-dd0ee9ea857c4e4d927ae41791c1626fd57c301d.zip
fdtgrep: Separate out checking of two allocations
The current code might succeed on the first allocation and fail on the second. Separate the checks to avoid this problem. Of course, free() will never fail and the chances that (when allocating two small areas) one will succeed and one will fail are just as remote. But this keeps coverity happy. Reported-by: Coverity (CID: 131226) Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'lib/rsa')
0 files changed, 0 insertions, 0 deletions