udl-kms: handle allocation failure
authorMikulas Patocka <mpatocka@redhat.com>
Sun, 3 Jun 2018 14:40:56 +0000 (16:40 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Sep 2018 07:18:39 +0000 (09:18 +0200)
commit377d23bc9d8467cebe2b34902d9726c2683bb355
tree7d95f94a66704c44404023e41820d3aa0188431f
parentf56d71483ea87fb6a4cdfb642585d66b90cc8742
udl-kms: handle allocation failure

commit 542bb9788a1f485eb1a2229178f665d8ea166156 upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/udl/udl_main.c