[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
(usagi-users 01819) inet6_dev reference leak [PATCH]
- To: usagi-users@xxxxxxxxxxxxxx
- Subject: (usagi-users 01819) inet6_dev reference leak [PATCH]
- From: "David Stevens" <dlstevens@xxxxxxxxxx>
- Date: Mon, 16 Sep 2002 13:55:59 -0700
- Importance: Normal
- Reply-to: usagi-users@xxxxxxxxxxxxxx
- Sender: "David Stevens" <dlstevens@xxxxxxxxxx>
- Sensitivity:
It appears there is a dangling reference count for the inet6_dev in
ip6_frag_reasm(). Patch below, for the 9/16 2.4 snapshot.
+-DLS
--- net/ipv6/reassembly-OLD.c Sun May 19 22:49:00 2002
+++ net/ipv6/reassembly.c Mon Sep 16 13:51:12 2002
@@ -633,6 +633,8 @@
head->csum = csum_partial(head->nh.raw, head->h.raw-head->nh.raw, head->csum);
IP6_INC_STATS_BH(idev,Ip6ReasmOKs);
+ if (idev)
+ in6_dev_put(idev);
fq->fragments = NULL;
return nhoff;