commit | b059dfbc11eccd51b92eb4ffe501d5c78cca8ff0 | [log] [tgz] |
---|---|---|
author | Imre Kis <imre.kis@arm.com> | Tue May 31 14:39:28 2022 +0200 |
committer | György Szing <gyorgy.szing@arm.com> | Wed Jun 08 19:59:22 2022 +0200 |
tree | 5dfa12853c7d77bd358e45c7abccb70340e3b24e | |
parent | 3ec5ebecbbda469ce3dae2de1d837cab781a6f5d [diff] |
Fix segfault in tests if the driver is not loaded If the FF-A TEE driver is not loaded the setup phase of the tests will fail as expected but then the teardown function tries to free unallocated resources causing a segfault. This patch fixes teardown functions by first checking if the resources were allocated before freeing them up. Signed-off-by: Imre Kis <imre.kis@arm.com> Change-Id: Icacfdf7d8d3808503cb45a4a9233b7b2479f9aa2