commit | e178db1d7736a92951fdc7f1fd9b8ecf4d2877ba | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Tue Jun 12 00:04:58 2018 -0600 |
committer | Tom Rini <trini@konsulko.com> | Tue Jun 19 07:31:43 2018 -0400 |
tree | 13dcbc415e233868834eb2ba55ae20d18f497a00 | |
parent | af880e247d502844e01219995cbdbee4b3e6d204 [diff] |
fdtgrep: Fix logic of free() in do_fdtgrep() This loop never actually exits, but the way the code is written this is not obvious. Add an explicit error check. Reported-by: Coverity (CID: 131280) Signed-off-by: Simon Glass <sjg@chromium.org> [trini: Add explicit init of region to NULL per LLVM warning] Signed-off-by: Tom Rini <trini@konsulko.com>