[Patch] Futex misses kill_sb

From: Marc Zyngier (mzyngier@freesurf.fr)
Date: Fri Aug 30 2002 - 09:52:37 EST


Hi all,

The enclosed patch fixes a missing .kill_sb in futexes' fs_type
declaration. Without this patch, kernel oopses if someone ever tries
to mount futexfs...

Thanks for any comments.

        M.

# This is a BitKeeper generated patch for the following project:
# Project Name: Linux kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.542 -> 1.543
# kernel/futex.c 1.12 -> 1.13
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/08/30 maz@if.wild-wind.fr.eu.org 1.543
# futex.c:
# Fixed missing .kill_sb
# --------------------------------------------
#
diff -Nru a/kernel/futex.c b/kernel/futex.c
--- a/kernel/futex.c Fri Aug 30 19:26:44 2002
+++ b/kernel/futex.c Fri Aug 30 19:26:44 2002
@@ -359,6 +359,7 @@
 static struct file_system_type futex_fs_type = {
         .name = "futexfs",
         .get_sb = futexfs_get_sb,
+ .kill_sb = kill_anon_super,
 };
 
 static int __init init(void)

-- 
Places change, faces change. Life is so very strange.
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sat Aug 31 2002 - 22:00:30 EST