]> asedeno.scripts.mit.edu Git - linux.git/commit
udlfb: handle allocation failure
authorMikulas Patocka <mpatocka@redhat.com>
Wed, 25 Jul 2018 13:41:56 +0000 (15:41 +0200)
committerBartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
Wed, 25 Jul 2018 13:41:56 +0000 (15:41 +0200)
commit080fb5240bdcabed7387b814139c3ea172d59fc5
treea35034f95902b71185318c8dd0c789d037be5719
parentbb24153a3f13dd0dbc1f8055ad97fe346d598f66
udlfb: handle allocation failure

Allocations larger than PAGE_ALLOC_COSTLY_ORDER are unreliable and they
may fail anytime. This patch fixes the udlfb driver so that when a large
alloactions fails, it tries to do multiple smaller allocations.

Signed-off-by: Mikulas Patocka <mpatocka@redhat.com>
Cc: stable@vger.kernel.org
Signed-off-by: Bartlomiej Zolnierkiewicz <b.zolnierkie@samsung.com>
drivers/video/fbdev/udlfb.c