[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <adabpr76oia.fsf@cisco.com>
Date: Wed, 08 Apr 2009 10:31:25 -0700
From: Roland Dreier <rdreier@...co.com>
To: Christoph Hellwig <hch@...radead.org>
Cc: Li Zefan <lizf@...fujitsu.com>, felixb@....com,
Andrew Morton <akpm@...ux-foundation.org>,
LKML <linux-kernel@...r.kernel.org>, xfs@....sgi.com
Subject: Re: [PATCH 4/6] xfs: use memdup_user()
> wouldn't NULL be a better error return for this kind of interface,
> matching kmalloc?
I guess returning an error code from memdup_user() lets callers
distinguish between ENOMEM and EFAULT. Not sure if that's important or
not but there probably are at least some sites that care.
- R.
--
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