X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;f=arch%2Fx86%2Fboot%2Fvideo.c;h=ad9712f01739748c0d0d7d727ac34e20401de26f;hb=221d46841b931d0e6b11e6251e482f2afe3974dd;hp=e4ba897bf9a3748c89e442141887ea9e0dbba721;hpb=55982fd184a065b1c69279d29cbc01dbf424d2f4;p=linux-2.6-omap-h63xx.git diff --git a/arch/x86/boot/video.c b/arch/x86/boot/video.c index e4ba897bf9a..ad9712f0173 100644 --- a/arch/x86/boot/video.c +++ b/arch/x86/boot/video.c @@ -371,7 +371,7 @@ static void save_screen(void) saved.curx = boot_params.screen_info.orig_x; saved.cury = boot_params.screen_info.orig_y; - if (heap_free() < saved.x*saved.y*sizeof(u16)+512) + if (!heap_free(saved.x*saved.y*sizeof(u16)+512)) return; /* Not enough heap to save the screen */ saved.data = GET_HEAP(u16, saved.x*saved.y);