[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <1316515691-1833-1-git-send-email-ian.campbell@citrix.com>
Date: Tue, 20 Sep 2011 11:48:11 +0100
From: Ian Campbell <ian.campbell@...rix.com>
To: netdev@...r.kernel.org
CC: Ian Campbell <ian.campbell@...rix.com>
Subject: [PATCH] macvtap: fix warning due to use of uninitialised var
d1b08284ade "macvtap: convert to SKB paged frag API." accidentally dropped the
initialisation of a variable leading to:
drivers/net/macvtap.c:509:5: warning: âfâ may be used uninitialized
in this function [-Wuninitialized]
Reported-by: Dan Carpenter <dan.carpenter@...cle.com>
Signed-off-by: Ian Campbell <ian.campbell@...rix.com>
---
drivers/net/macvtap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/drivers/net/macvtap.c b/drivers/net/macvtap.c
index 7c3f84a..5beda89 100644
--- a/drivers/net/macvtap.c
+++ b/drivers/net/macvtap.c
@@ -503,6 +503,7 @@ static int zerocopy_sg_from_iovec(struct sk_buff *skb, const struct iovec *from,
skb->truesize += len;
atomic_add(len, &skb->sk->sk_wmem_alloc);
while (len) {
+ f = &skb_shinfo(skb)->frags[i];
__skb_fill_page_desc(
skb, i, page[i],
base & ~PAGE_MASK,
--
1.7.2.5
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Powered by blists - more mailing lists