udl-kms: handle allocation failure
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:40:56 +0000 (16:40 +0200)
committerDave Airlie <airlied@redhat.com>
Mon, 30 Jul 2018 22:03:47 +0000 (08:03 +1000)
commit542bb9788a1f485eb1a2229178f665d8ea166156
treebec9be24dc98a0b331e1f00e436e05f515addb91
parent8456b99c16d193c4c3b7df305cf431e027f0189c
udl-kms: handle allocation failure

Allocations larger than PAGE_ALLOC_COSTLY_ORDER are unreliable and they
may fail anytime. This patch fixes the udl kms 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: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_main.c