commit | 9c1b28081f43c0f14ccbcad02a6e0f227c072da2 | [log] [tgz] |
---|---|---|
author | Bob Peterson <rpeterso@redhat.com> | Tue Jul 18 12:26:07 2017 -0500 |
committer | Bob Peterson <rpeterso@redhat.com> | Wed Aug 09 09:36:26 2017 -0500 |
tree | bba27d1d2d13615052798da96a320dfcfd083aa3 | |
parent | 4d7c18c7df89ef549f2de79b0faf873b49dea57a [diff] |
GFS2: Clear gl_object if gfs2_create_inode fails If function gfs2_create_inode fails after the inode has been created (for example, if the inode_refresh fails for some reason) the function was setting gl_object but never clearing it again. The glocks are left pointing to a freed inode. This patch adds the calls to clear gl_object in the appropriate error paths. Signed-off-by: Bob Peterson <rpeterso@redhat.com> Reviewed-by: Andreas Gruenbacher <agruenba@redhat.com>