drm/udl: properly check for error pointers
authorHaixia Shi <hshi@chromium.org>
Tue, 25 Nov 2014 20:04:03 +0000 (12:04 -0800)
committerDave Airlie <airlied@redhat.com>
Wed, 26 Nov 2014 00:03:18 +0000 (10:03 +1000)
commite38648f95d197b2296dec4b8c1f9a163c362f31e
tree49c4c0363e3efdaade162d06a6575deb5abe3c61
parent4bc158e0be4b03b320db9f3b91a84c898ae928a0
drm/udl: properly check for error pointers

The drm_prime_pages_to_sg() function never returns NULL pointers, only
error pointers and valid pointers.

Signed-off-by: Haixia Shi <hshi@chromium.org>
Reviewed-by: Stéphane Marchesin <marcheu@chromium.org>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/udl/udl_dmabuf.c