diff --git a/common/uimage.c b/common/uimage.c index 4933c40..945f3d6 100644 --- a/common/uimage.c +++ b/common/uimage.c @@ -404,8 +404,12 @@ res = NULL; goto out; } - if (now < BUFSIZ) + + if (now < BUFSIZ) { + release_sdram_region(res); + res = request_sdram_region("image", adr, ofs + now); goto out; + } release_sdram_region(res);