drm/prime: fix sgt NULL checking
authorJoonyoung Shim <jy0922.shim@samsung.com>
Thu, 4 Jul 2013 07:19:12 +0000 (16:19 +0900)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Jul 2013 05:36:20 +0000 (15:36 +1000)
commitf9d8a1294d37449f3f1b842ffb275e2ca41f5cf4
tree015b94316caaf63df9278dba5695eb49f773ac77
parent63eef6002bd2c719bf10dc436fc0dd8c6baef69a
drm/prime: fix sgt NULL checking

The drm_gem_map_detach() can be called with sgt is NULL.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/drm_prime.c