From: Dan Carpenter <dan.carpenter@oracle.com>
To: "Wang, Yalin" <Yalin.Wang@sonymobile.com>
Cc: "'gregkh@linuxfoundation.org'" <gregkh@linuxfoundation.org>,
"'tranmanphong@gmail.com'" <tranmanphong@gmail.com>,
"'fabio.estevam@freescale.com'" <fabio.estevam@freescale.com>,
"'prime.zeng@huawei.com'" <prime.zeng@huawei.com>,
"'devel@driverdev.osuosl.org'" <devel@driverdev.osuosl.org>,
"'linux-kernel@vger.kernel.org'" <linux-kernel@vger.kernel.org>,
"Gao, Neil" <Neil.Gao@sonymobile.com>
Subject: Re: [RFC] ion:change ion_cma_allocate return error value
Date: Tue, 27 Jan 2015 10:26:06 +0300 [thread overview]
Message-ID: <20150127072606.GR6456@mwanda> (raw)
In-Reply-To: <35FD53F367049845BC99AC72306C23D1044A02027DF9@CNBJMBX05.corpusers.net>
On Tue, Jan 27, 2015 at 02:04:21PM +0800, Wang, Yalin wrote:
> This patch change the error return value from -1 to -ENOMEM,
> so that userspace can get the correct errno, otherwise,
> -1 will be -EPERM, userspace will print permission deny for allocation
> failure.
>
> Signed-off-by: Yalin Wang <yalin.wang@sonymobile.com>
Looks good.
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
regards,
dan carpenter
next prev parent reply other threads:[~2015-01-27 7:26 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-01-27 6:04 [RFC] ion:change ion_cma_allocate return error value Wang, Yalin
2015-01-27 7:26 ` Dan Carpenter [this message]
2015-01-28 18:45 ` 'gregkh@linuxfoundation.org'
2015-01-29 1:41 ` Wang, Yalin
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20150127072606.GR6456@mwanda \
--to=dan.carpenter@oracle.com \
--cc=Neil.Gao@sonymobile.com \
--cc=Yalin.Wang@sonymobile.com \
--cc=devel@driverdev.osuosl.org \
--cc=fabio.estevam@freescale.com \
--cc=gregkh@linuxfoundation.org \
--cc=linux-kernel@vger.kernel.org \
--cc=prime.zeng@huawei.com \
--cc=tranmanphong@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox