diff options
-rw-r--r-- | debian/patches/0000-fix-node-leak.patch | 21 | ||||
-rw-r--r-- | debian/patches/series | 3 |
2 files changed, 22 insertions, 2 deletions
diff --git a/debian/patches/0000-fix-node-leak.patch b/debian/patches/0000-fix-node-leak.patch new file mode 100644 index 00000000..d3f593aa --- /dev/null +++ b/debian/patches/0000-fix-node-leak.patch @@ -0,0 +1,21 @@ +commit c29aecfba1c854ccaacb66b4fe6424d5af236211 +Author: Justus Winter <4winter@informatik.uni-hamburg.de> +Date: Sat May 24 20:29:23 2014 +0200 + + libdiskfs: fix node leak in the name cache + + * libdiskfs/name-cache.c (diskfs_check_lookup_cache): Release node + reference in a special case of lookup failure. + +diff --git a/libdiskfs/name-cache.c b/libdiskfs/name-cache.c +index c113692..a212a6d 100644 +--- a/libdiskfs/name-cache.c ++++ b/libdiskfs/name-cache.c +@@ -249,6 +249,7 @@ diskfs_check_lookup_cache (struct node *dir, const char *name) + { + /* Lose */ + pthread_mutex_unlock (&np->lock); ++ diskfs_nrele (np); + return 0; + } + } diff --git a/debian/patches/series b/debian/patches/series index 735295d0..a179a43c 100644 --- a/debian/patches/series +++ b/debian/patches/series @@ -40,8 +40,6 @@ xkb-compat.patch mach-defpager-protected-payload.patch -#0010-libihash-make-the-locp-offset-mechanism-more-flexibl.patch -#0011-trans-fakeroot-use-the-indirection-mechanism-for-loc.patch 0001-include-install-refcount.h.patch 0002-exec-add-missing-includes.patch 0003-pfinet-add-missing-include.patch @@ -53,3 +51,4 @@ mach-defpager-protected-payload.patch 0009-libnetfs-add-netfs_make_node_alloc-to-allocate-fat-n.patch 0010-trans-fakeroot-use-fat-nodes-to-simplify-the-node-ca.patch 0011-trans-fakeroot-use-netfs_node_netnode-instead-of-np-.patch +0000-fix-node-leak.patch |