The patch titled r/o bind mounts: Accept passing a mnt NULL pointer to mnt_drop_write() has been added to the -mm tree. Its filename is r-o-bind-mounts-track-number-of-mount-writers-fix.patch *** Remember to use Documentation/SubmitChecklist when testing your code *** See http://www.zip.com.au/~akpm/linux/patches/stuff/added-to-mm.txt to find out what to do about this ------------------------------------------------------ Subject: r/o bind mounts: Accept passing a mnt NULL pointer to mnt_drop_write() From: Jan Blunck <jblunck@xxxxxxx> In case of somebody opens a file with dentry_open(dentry, NULL, ...) we don't want to stumble on the NULL pointer mnt in struct file. Signed-off-by: Jan Blunck <jblunck@xxxxxxx> Cc: Dave Hansen <haveblue@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/namespace.c | 3 +++ 1 file changed, 3 insertions(+) diff -puN fs/namespace.c~r-o-bind-mounts-track-number-of-mount-writers-fix fs/namespace.c --- a/fs/namespace.c~r-o-bind-mounts-track-number-of-mount-writers-fix +++ a/fs/namespace.c @@ -249,6 +249,9 @@ void mnt_drop_write(struct vfsmount *mnt int must_check_underflow = 0; struct mnt_writer *cpu_writer; + if (!mnt) + return; + cpu_writer = &get_cpu_var(mnt_writers); spin_lock(&cpu_writer->lock); _ Patches currently in -mm which might be from jblunck@xxxxxxx are r-o-bind-mounts-unix_find_other-elevate-write-count-for-touch_atime-fix.patch r-o-bind-mounts-track-number-of-mount-writers-fix.patch - To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html