Re: [PATCH] virtio_balloon: fix towards_target when deflating balloon

From: Rusty Russell
Date: Mon Aug 18 2008 - 23:08:18 EST


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.
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/