From patchwork Wed Jun 15 22:32:25 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Quartulli X-Patchwork-Id: 1159 Return-Path: Received: from latitanza.investici.org (latitanza.investici.org [82.94.249.234]) by open-mesh.org (Postfix) with ESMTPS id 51C3D154060 for ; Thu, 16 Jun 2011 00:32:35 +0200 (CEST) Authentication-Results: open-mesh.org; dkim=pass (1024-bit key) header.i=@autistici.org; dkim-adsp=pass Received: from [82.94.249.234] (latitanza [82.94.249.234]) (Authenticated sender: ordex@autistici.org) by localhost (Postfix) with ESMTPSA id 5B08B982E0; Wed, 15 Jun 2011 22:32:34 +0000 (UTC) X-DKIM: Sendmail DKIM Filter v2.8.2 latitanza.investici.org 5B08B982E0 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=autistici.org; s=stigmate; t=1308177154; bh=+jw49eC8DoQQ8QAAGcncrjrTD3HmzekoAL7gZ0XqHR0=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References; b=PR60kWh6IL0CpGiS3iAC0l2iEEg1O+9SDRvU3ab41kLsvW4iNxY3LJjViUSDTgqea 3v84u4Jz6SZOV9/95xY1RYpb9AV+Zlqto3BuslBTxn/D0vOHV7Q9TyGglhBlvz5YhV oTKeGbged6qqhf4vvrZQf+2XYViNgNIPR1iQmF7Q= From: Antonio Quartulli To: "B.A.T.M.A.N" Date: Thu, 16 Jun 2011 00:32:25 +0200 Message-Id: <1308177145-21191-2-git-send-email-ordex@autistici.org> X-Mailer: git-send-email 1.7.3.4 In-Reply-To: <201106152056.18072.lindner_marek@yahoo.de> References: <201106152056.18072.lindner_marek@yahoo.de> Subject: [B.A.T.M.A.N.] [PATCH 2/2] batman-adv: skbs have to be freed using kfree_skb() X-BeenThere: b.a.t.m.a.n@lists.open-mesh.org X-Mailman-Version: 2.1.13 Precedence: list Reply-To: The list for a Better Approach To Mobile Ad-hoc Networking List-Id: The list for a Better Approach To Mobile Ad-hoc Networking List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 15 Jun 2011 22:32:35 -0000 The skb structures have always to be freed using kfree_skb() and not the simple kfree() Signed-off-by: Antonio Quartulli --- translation-table.c | 4 ++-- 1 files changed, 2 insertions(+), 2 deletions(-) diff --git a/translation-table.c b/translation-table.c index adecf1b..373ee81 100644 --- a/translation-table.c +++ b/translation-table.c @@ -1199,7 +1199,7 @@ out: if (primary_if) hardif_free_ref(primary_if); if (!ret) - kfree(skb); + kfree_skb(skb); return ret; } @@ -1312,7 +1312,7 @@ out: if (primary_if) hardif_free_ref(primary_if); if (!ret) - kfree(skb); + kfree_skb(skb); /* This packet was for me, so it doesn't need to be re-routed */ return true; }