public inbox for kernel-janitors@vger.kernel.org
 help / color / mirror / Atom feed
From: Dan Carpenter <dan.carpenter@oracle.com>
To: kernel-janitors@vger.kernel.org
Subject: [bug report] macvtap: switch to use skb array
Date: Mon, 18 Jul 2016 18:26:17 +0000	[thread overview]
Message-ID: <20160718150651.GA31660@mwanda> (raw)

Hello Jason Wang,

The patch 362899b8725b: "macvtap: switch to use skb array" from Jul
15, 2016, leads to the following static checker warning:

	drivers/net/macvtap.c:539 macvtap_sock_destruct()
	error: use kfree_skb() here instead of kfree(skb)

drivers/net/macvtap.c
   533  static void macvtap_sock_destruct(struct sock *sk)
   534  {
   535          struct macvtap_queue *q = container_of(sk, struct macvtap_queue, sk);
   536          struct sk_buff *skb;
   537  
   538          while ((skb = skb_array_consume(&q->skb_array)) != NULL)
   539                  kfree(skb);

Should be kfree_skb().  On my way to airport or would send patch.

   540  }

regards,
dan carpenter

             reply	other threads:[~2016-07-18 18:26 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-07-18 18:26 Dan Carpenter [this message]
2016-07-19  6:33 ` [bug report] macvtap: switch to use skb array Jason Wang

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=20160718150651.GA31660@mwanda \
    --to=dan.carpenter@oracle.com \
    --cc=kernel-janitors@vger.kernel.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox