drm/exynos: make sure to handle an error case to vm_mmap call
authorInki Dae <inki.dae@samsung.com>
Fri, 14 Jun 2013 08:54:27 +0000 (17:54 +0900)
committerInki Dae <daeinki@gmail.com>
Fri, 28 Jun 2013 12:13:56 +0000 (21:13 +0900)
commit23f340e0314eab461d33ae91250f9b47af23918f
treec0fd433e18b16354cc66976e0de61c543a195cb8
parent2fa7b74c7b39b66c378be151a854e0b8a705765c
drm/exynos: make sure to handle an error case to vm_mmap call

vm_mmap function returns unsigned long so addr type should be unsigned long.
a pointer or address variable is required to use unsigned long or uint64_t
type for 64bits address support.

So this patch makes sure that addr has unsigned long type and also
exynos_drm_gem_mmap_ioctl returns correct error type.

Signed-off-by: Inki Dae <inki.dae@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_gem.c