Fixes: https://bugs.linaro.org/show_bug.cgi?id=3182 by adding proper checks on allocated memory. Signed-off-by: Ilias Apalodimas [email protected]
----------------github------------------------ /** Email created from pull request 101 (apalos:bug_3182) ** https://github.com/Linaro/odp/pull/101 ** Patch: https://github.com/Linaro/odp/pull/101.patch ** Base sha: 4537d096721a753086592ed5a989beab5647bcfa ** Merge commit sha: 7bee8312cef61d52ce1c788583f3831f05afcfeb **/ ----------------/github------------------------ ----------------checkpatch.pl------------------------ total: 0 errors, 0 warnings, 0 checks, 70 lines checked to_send-p-000.patch has no obvious style problems and is ready for submission. total: 0 errors, 0 warnings, 0 checks, 12 lines checked to_send-p-001.patch has no obvious style problems and is ready for submission. ----------------/checkpatch.pl------------------------
