[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

(usagi-users 01819) inet6_dev reference leak [PATCH]



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;