drm: correctly check failed allocation
authorInsu Yun <wuninsu@gmail.com>
Mon, 19 Oct 2015 16:33:30 +0000 (16:33 +0000)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 21 Oct 2015 07:27:30 +0000 (09:27 +0200)
commit48aa1e748f29373fdcc2bc341eac08ef16bff269
tree560d7538e0579da4708d28dc5d27501b00ef96e9
parent5d170139eb10ae12e1bd076245c42b35453d8324
drm: correctly check failed allocation

drm_property_create_range can be failed in memory pressure
Therefore, check return value and handle an error

Signed-off-by: Insu Yun <wuninsu@gmail.com>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/drm_crtc.c