mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Rafael Aquini <aquini@redhat.com>
To: Paul McQuade <paulmcquad@gmail.com>
Cc: akpm@linux-foundation.org, heiko.carstens@de.ibm.com,
	manfred@colorfullife.com, hpa@linux.intel.com,
	linux-kernel@vger.kernel.org
Subject: Re: [PATCH] ipc: compat_mq  sizeof() instead of sizeof
Date: Tue, 7 Oct 2014 16:06:27 -0400	[thread overview]
Message-ID: <20141007200626.GA21886@t510.redhat.com> (raw)
In-Reply-To: <1412266828-4274-1-git-send-email-paulmcquad@gmail.com>

On Thu, Oct 02, 2014 at 05:20:28PM +0100, Paul McQuade wrote:
> added a parenthesis for sizeof function
>

This log message could use some enhancement (just a nit)

Other than that:

Acked-by: Rafael Aquini <aquini@redhat.com>

> Signed-off-by: Paul McQuade <paulmcquad@gmail.com>
> ---
>  ipc/compat_mq.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
> 
> diff --git a/ipc/compat_mq.c b/ipc/compat_mq.c
> index ef6f91c..27496d9 100644
> --- a/ipc/compat_mq.c
> +++ b/ipc/compat_mq.c
> @@ -25,7 +25,7 @@ struct compat_mq_attr {
>  static inline int get_compat_mq_attr(struct mq_attr *attr,
>  			const struct compat_mq_attr __user *uattr)
>  {
> -	if (!access_ok(VERIFY_READ, uattr, sizeof *uattr))
> +	if (!access_ok(VERIFY_READ, uattr, sizeof(*uattr)))
>  		return -EFAULT;
>  
>  	return __get_user(attr->mq_flags, &uattr->mq_flags)
> @@ -37,7 +37,7 @@ static inline int get_compat_mq_attr(struct mq_attr *attr,
>  static inline int put_compat_mq_attr(const struct mq_attr *attr,
>  			struct compat_mq_attr __user *uattr)
>  {
> -	if (clear_user(uattr, sizeof *uattr))
> +	if (clear_user(uattr, sizeof(*uattr)))
>  		return -EFAULT;
>  
>  	return __put_user(attr->mq_flags, &uattr->mq_flags)
> -- 
> 1.9.1
> 

      reply	other threads:[~2014-10-07 20:07 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-02 16:20 Paul McQuade
2014-10-07 20:06 ` Rafael Aquini [this message]

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=20141007200626.GA21886@t510.redhat.com \
    --to=aquini@redhat.com \
    --cc=akpm@linux-foundation.org \
    --cc=heiko.carstens@de.ibm.com \
    --cc=hpa@linux.intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=manfred@colorfullife.com \
    --cc=paulmcquad@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

Powered by JetHome