diff --git a/plat/msdos386/libsys/sbrk.c b/plat/msdos386/libsys/sbrk.c index 988d406f3..2dbd610f3 100644 --- a/plat/msdos386/libsys/sbrk.c +++ b/plat/msdos386/libsys/sbrk.c @@ -31,6 +31,7 @@ void* sbrk(int increment) if (brk(new) < 0) goto out_of_memory; + current = new; return old; out_of_memory: