diff options
author | Subash Patel <[email protected]> | 2012-06-25 11:22:56 -0700 |
---|---|---|
committer | Inki Dae <[email protected]> | 2012-07-27 11:13:55 +0900 |
commit | 56fb5380c76d75d30b0e7acdfd36de34b4ee4375 (patch) | |
tree | a54ebe3160e8f13f6eabed44abe00d363a60ad06 /lib/mpi/mpi-internal.h | |
parent | 9416dfa76ab418a2ba71ec1027f3c0af674d6e23 (diff) |
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 <[email protected]>
Signed-off-by: Inki Dae <[email protected]>
Signed-off-by: Kyungmin Park <[email protected]>
Diffstat (limited to 'lib/mpi/mpi-internal.h')
0 files changed, 0 insertions, 0 deletions