diff options
-rw-r--r-- | common/uimage.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/common/uimage.c b/common/uimage.c index 4933c40583..945f3d6b0f 100644 --- a/common/uimage.c +++ b/common/uimage.c @@ -404,8 +404,12 @@ struct resource *file_to_sdram(const char *filename, unsigned long adr) 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); |