drm/i915: fix error return code in init_pipe_control()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 28 May 2013 09:51:44 +0000 (17:51 +0800)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 31 May 2013 18:54:04 +0000 (20:54 +0200)
commit56b085a01befc7907d270e9acb349580015e7bad
treedd543633d5f98e02764888391c3de28aab3eff06
parent6b1c087ba5789aceb25a2170b217055ce2476f67
drm/i915: fix error return code in init_pipe_control()

Fix to return -ENOMEM in the kmap() error handling case
instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/intel_ringbuffer.c