From: Jason Wang <jasowang@redhat.com>
To: Paolo Bonzini <pbonzini@redhat.com>, qemu-devel@nongnu.org
Subject: Re: [Qemu-devel] [PATCH] net: fix incorrect access to pointer
Date: Mon, 18 Jul 2016 13:59:02 +0800 [thread overview]
Message-ID: <578C7026.2040406@redhat.com> (raw)
In-Reply-To: <1468572212-24209-1-git-send-email-pbonzini@redhat.com>
On 2016年07月15日 16:43, Paolo Bonzini wrote:
> This is not dereferencing the pointer, and instead checking only
> the value of the pointer.
>
> Signed-off-by: Paolo Bonzini <pbonzini@redhat.com>
> ---
> net/eth.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/net/eth.c b/net/eth.c
> index 0be59c2..df81efb 100644
> --- a/net/eth.c
> +++ b/net/eth.c
> @@ -211,7 +211,7 @@ void eth_get_protocols(const struct iovec *iov, int iovcnt,
> *l4hdr_off, sizeof(l4hdr_info->hdr.tcp),
> &l4hdr_info->hdr.tcp);
>
> - if (istcp) {
> + if (*istcp) {
> *l5hdr_off = *l4hdr_off +
> TCP_HEADER_DATA_OFFSET(&l4hdr_info->hdr.tcp);
>
Applied to -net. Thanks
prev parent reply other threads:[~2016-07-18 5:59 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2016-07-15 8:43 [Qemu-devel] [PATCH] net: fix incorrect access to pointer Paolo Bonzini
2016-07-18 5:59 ` Jason Wang [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=578C7026.2040406@redhat.com \
--to=jasowang@redhat.com \
--cc=pbonzini@redhat.com \
--cc=qemu-devel@nongnu.org \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.