Re: [PATCH] Drivers: hv: hv_balloon: survive ballooning request with num_pages=0

2015-03-26 Thread Laszlo Ersek
On 03/26/15 17:07, Vitaly Kuznetsov wrote: > ... and simplify alloc_balloon_pages() interface by removing redundant > alloc_error from it. > > If we happen to enter balloon_up() with balloon_wrk.num_pages = 0 we will > enter > infinite 'while (!done)' loop as alloc_balloon_pages() will be always

[PATCH] Drivers: hv: hv_balloon: survive ballooning request with num_pages=0

2015-03-26 Thread Vitaly Kuznetsov
... and simplify alloc_balloon_pages() interface by removing redundant alloc_error from it. If we happen to enter balloon_up() with balloon_wrk.num_pages = 0 we will enter infinite 'while (!done)' loop as alloc_balloon_pages() will be always returning 0 and not setting alloc_error. We will also be