X-Git-Url: http://pilppa.org/gitweb/gitweb.cgi?a=blobdiff_plain;ds=sidebyside;f=arch%2Fx86%2Fboot%2Fvideo.c;h=ad9712f01739748c0d0d7d727ac34e20401de26f;hb=221d46841b931d0e6b11e6251e482f2afe3974dd;hp=e4ba897bf9a3748c89e442141887ea9e0dbba721;hpb=ce9d3c9a6a9aef61525be07fe6ba27d937236aa2;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);