[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <20120421220911.GT6871@ZenIV.linux.org.uk>
Date: Sat, 21 Apr 2012 23:09:11 +0100
From: Al Viro <viro@...IV.linux.org.uk>
To: Sasikanth V <sasikanth.v19@...il.com>
Cc: linux-fsdevel@...r.kernel.org, linux-kernel@...r.kernel.org
Subject: Re: [PATCH] fs: uselib - Set error on do_filp_open failure only
On Sun, Apr 22, 2012 at 03:19:43AM +0530, Sasikanth V wrote:
> At present "error" is set irrespective of do_filp_open failed or not.
> Setting error to PTR_ERR(file) on do_filp_open failure only.
NAK, since it's completely pointless. PTR_ERR() is safe to use on *any*
pointers; result won't be anything interesting unless IS_ERR() is true,
but PTR_ERR() itself can be evaluated just fine.
--
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