lkml.org 
[lkml]   [2008]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [PATCH] virtio_balloon: fix towards_target when deflating balloon
Date
On Tuesday 19 August 2008 08:15:31 Anthony Liguori wrote:
> - return v - vb->num_pages;
> + if (v < vb->num_pages)
> + return -(s64)(vb->num_pages - v);
> + else
> + return v - vb->num_pages;

With all due respect, WTF?

Did you mean:

return (s64)v - vb->num_pages;

I'm really amazed this bug got this far though...
Rusty.


\
 
 \ /
  Last update: 2008-08-19 05:11    [W:0.145 / U:0.044 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site