OSDN Git Service

ch7006: correctly handling failed allocation
authorInsu Yun <wuninsu@gmail.com>
Thu, 28 Jan 2016 23:54:36 +0000 (18:54 -0500)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 9 Feb 2016 15:34:44 +0000 (16:34 +0100)
commit44084efc2fd804e3b40159a19e1c4874f56f73ab
treea50a4256279f16f5356f575fe638d6404fa1919b
parent14d2000182ed1cb6baf0fe8dc60a3664a832fc01
ch7006: correctly handling failed allocation

Since drm_property_create_range can be failed in memory pressure,
it needs to be checked and return -ENOMEM.

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: http://patchwork.freedesktop.org/patch/msgid/1454025276-13465-1-git-send-email-wuninsu@gmail.com
drivers/gpu/drm/i2c/ch7006_drv.c