From patchwork Thu May 23 09:10:43 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Wei Yongjun X-Patchwork-Id: 2605761 Return-Path: X-Original-To: patchwork-linux-wireless@patchwork.kernel.org Delivered-To: patchwork-process-083081@patchwork1.kernel.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by patchwork1.kernel.org (Postfix) with ESMTP id DB14740077 for ; Thu, 23 May 2013 09:11:01 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757885Ab3EWJKq (ORCPT ); Thu, 23 May 2013 05:10:46 -0400 Received: from mail-bk0-f46.google.com ([209.85.214.46]:53408 "EHLO mail-bk0-f46.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757780Ab3EWJKo (ORCPT ); Thu, 23 May 2013 05:10:44 -0400 Received: by mail-bk0-f46.google.com with SMTP id my13so1687841bkb.33 for ; Thu, 23 May 2013 02:10:43 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to:cc:content-type; bh=FPVIJXg+bdbWNLBFHlP3s241OgW/30kr9OGVYL1UEJY=; b=mC/iyVfB4tbkvgri1qWQlKsAISVPfQdJ00DnbsaA/NzNdAmit/Klg4wxVa64gl/k6S QRqNsviLU5oNSbKtkK6ft3y8x7B1z+bgA/Cm5g2uCc0sa5IZGBn6CWxYrJjFhMM+KxB3 j7AMf75CWJtCZ+yfbWfY1F7kdu53M9OjK11WAl9/uWpCX6vNifcSnFkHk6ORqvxRPsG2 vB4nC7b7qZ5/VlZvxPDw88zu8L9QF7CDjZfitBbIJlqBRzOxD8y6xCphh4cl0Uko6dZA kAcU1QqyQXTpXFstB17RYIyzNDWQNWEOFYFgT1fqzYs3EQ1L0Xu4hWJiURmKEJvVVPow a2KQ== MIME-Version: 1.0 X-Received: by 10.205.116.17 with SMTP id fg17mr5884582bkc.61.1369300243338; Thu, 23 May 2013 02:10:43 -0700 (PDT) Received: by 10.204.39.1 with HTTP; Thu, 23 May 2013 02:10:43 -0700 (PDT) Date: Thu, 23 May 2013 17:10:43 +0800 Message-ID: Subject: [PATCH -next] wil6210: use kfree_skb() instead of kfree() From: Wei Yongjun To: qca_vkondrat@qca.qualcomm.com, linville@tuxdriver.com Cc: yongjun_wei@trendmicro.com.cn, linux-wireless@vger.kernel.org, wil6210@qca.qualcomm.com Sender: linux-wireless-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org From: Wei Yongjun Use kfree_skb() instead of kfree() to free sk_buff. Introduced by commit e270045b569cc7030abd29857f3a4e7906524ec0 (wil6210: Sanity check for reported DMA length) Signed-off-by: Wei Yongjun --- drivers/net/wireless/ath/wil6210/txrx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html diff --git a/drivers/net/wireless/ath/wil6210/txrx.c b/drivers/net/wireless/ath/wil6210/txrx.c index 082f76b..00dffed 100644 --- a/drivers/net/wireless/ath/wil6210/txrx.c +++ b/drivers/net/wireless/ath/wil6210/txrx.c @@ -369,7 +369,7 @@ static struct sk_buff *wil_vring_reap_rx(struct wil6210_priv *wil, if (dmalen > sz) { wil_err(wil, "Rx size too large: %d bytes!\n", dmalen); - kfree(skb); + kfree_skb(skb); return NULL; } skb_trim(skb, dmalen);