[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20130528100522.GA11775@cantiga.alporthouse.com>
Date: Tue, 28 May 2013 11:05:22 +0100
From: Chris Wilson <chris@...is-wilson.co.uk>
To: Wei Yongjun <weiyj.lk@...il.com>
Cc: daniel.vetter@...ll.ch, airlied@...ux.ie,
yongjun_wei@...ndmicro.com.cn, intel-gfx@...ts.freedesktop.org,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH -next] drm/i915: fix error return code in
init_pipe_control()
On Tue, May 28, 2013 at 05:51:44PM +0800, Wei Yongjun wrote:
> From: Wei Yongjun <yongjun_wei@...ndmicro.com.cn>
>
> Fix to return -ENOMEM in the kmap() error handling case
> instead of 0, as done elsewhere in this function.
kmap() can fail?
It is either translated to page_address() or kmap_high() (on x86),
neither of which may return NULL. However, only kmap_atomic() is
documented as being guaranteed to return a valid value. If we could
have a similar definitive statement for kmap(), we can then cleanup
quite a bit of redundant error handling.
-Chris
--
Chris Wilson, Intel Open Source Technology Centre
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists