summaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_fops.c
diff options
context:
space:
mode:
authorSubash Patel <subash.rp@samsung.com>2012-06-25 20:22:56 +0200
committerInki Dae <inki.dae@samsung.com>2012-07-27 04:13:55 +0200
commit56fb5380c76d75d30b0e7acdfd36de34b4ee4375 (patch)
treea54ebe3160e8f13f6eabed44abe00d363a60ad06 /drivers/gpu/drm/drm_fops.c
parentdrm/exynos: Use devm_* functions in exynos_mixer.c (diff)
downloadlinux-56fb5380c76d75d30b0e7acdfd36de34b4ee4375.tar.xz
linux-56fb5380c76d75d30b0e7acdfd36de34b4ee4375.zip
drm/exynos: return NULL if exynos_pages_to_sg fails
exynos_pages_to_sg() internally calls sg_kmalloc() which can return no pages when the system is under high memory crunch. One such instance is chromeos-install in the chromeos. This patch adds check for the return value of the function in subject to return NULL on failure. Signed-off-by: Subash Patel <subash.ramaswamy@linaro.org> Signed-off-by: Inki Dae <inki.dae@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Diffstat (limited to 'drivers/gpu/drm/drm_fops.c')
0 files changed, 0 insertions, 0 deletions