lkml.org 
[lkml]   [2000]   [Mar]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Date
Subject[PATCH] 2.3.99-pre1 spurious put_filesystem in super.c:read_super()
Hi,

--- fs/super.c.old Fri Mar 17 22:41:34 2000
+++ fs/super.c Fri Mar 17 22:42:30 2000
@@ -606,7 +606,6 @@
s->s_dev = 0;
s->s_bdev = 0;
s->s_type = NULL;
- put_filesystem(type);
unlock_super(s);
return NULL;
}
The call to put_filesystem() in read_super() is wrong - all read_super()'s
callers call put_filesystem() if read_super() fails. As the callers inc the
use count, it seems reasonable that they are responsible for dec'ing it.

--
Horses are forbidden to eat fire hydrants in Marshalltown, Iowa.

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-03-22 13:57    [W:0.037 / U:0.236 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site