03/05/2018 15:03, Anatoly Burakov:
> If total memory is already bigger than max memory, an underflow
> will occur on subtraction. Fix it by simply stopping whenever
> we already have amount of memory that is bigger than maximum.
>
> Fixes: 66cc45e293ed ("mem: replace memseg with memseg lists")
> Cc: [email protected]
>
> Signed-off-by: Anatoly Burakov <[email protected]>Applied, thanks

