Branch: refs/heads/main Home: https://github.com/OpenAMP/open-amp Commit: 0307c3f0ed5bfe7f8145c8dd16f3e32ae5779691 https://github.com/OpenAMP/open-amp/commit/0307c3f0ed5bfe7f8145c8dd16f3e32ae... Author: chao an anchao@xiaomi.com Date: 2022-03-30 (Wed, 30 Mar 2022)
Changed paths: M lib/remoteproc/remoteproc.c
Log Message: ----------- remoteproc: fix memory issue if load resource table failed
The old code pass the error code to metal_free_memory in failure which is obviously wrong:
1. Generate the memory leak 2. May corrupt the heap manager
Signed-off-by: chao an anchao@xiaomi.com
openamp-rp@lists.openampproject.org