]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8a572a62f35b4526745d81a77c547113766b2749
treebec9be24dc98a0b331e1f00e436e05f515addb91
parented9558f4fca33da8715f78a4bd07e4d47a2e1032
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