Al Viro cfb2f9d5c9 GFS2: fix d_splice_alias() misuses
Callers of d_splice_alias(dentry, inode) don't need iput(), neither
on success nor on failure.  Either the reference to inode is stored
in a previously negative dentry, or it's dropped.  In either case
inode reference the caller used to hold is consumed.

__gfs2_lookup() does iput() in case when d_splice_alias() has failed.
Double iput() if we ever hit that.  And gfs2_create_inode() ends up
not only with double iput(), but with link count dropped to zero - on
an inode it has just found in directory.

Cc: stable@vger.kernel.org # v3.14+
Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Signed-off-by: Steven Whitehouse <swhiteho@redhat.com>
2014-09-12 20:58:55 +01:00
..
2014-03-19 15:53:52 +00:00
2014-03-19 15:16:24 +00:00
2014-08-21 10:22:23 +01:00
2014-03-03 13:50:12 +00:00
2013-09-05 16:23:51 -04:00
2014-03-07 09:30:51 +00:00
2014-01-06 12:49:43 +00:00
2013-06-29 12:57:05 +04:00
2008-06-27 09:39:44 +01:00
2014-05-14 10:04:34 +01:00
2014-09-11 10:59:56 +01:00
2014-09-12 20:58:55 +01:00
2013-06-14 11:17:15 +01:00
2013-06-03 14:20:18 -07:00
2014-05-14 10:04:34 +01:00
2014-05-14 10:04:34 +01:00
2014-03-07 09:30:51 +00:00
2011-05-10 13:12:49 +01:00
2014-05-14 10:04:34 +01:00
2013-01-29 10:29:05 +00:00
2012-01-11 09:23:05 +00:00
2014-05-14 10:04:34 +01:00
2009-12-16 12:16:49 -05:00