]> git.baikalelectronics.ru Git - kernel.git/commit
gfs2: Initialize iopen glock holder for new inodes
authorAndreas Gruenbacher <agruenba@redhat.com>
Fri, 17 Jun 2016 12:22:15 +0000 (07:22 -0500)
committerBob Peterson <rpeterso@redhat.com>
Fri, 17 Jun 2016 13:35:03 +0000 (08:35 -0500)
commit27c874eb4935339f40545454b9c9ada89e9bd963
treece81c0e518c2256111b2f6cc8e2a5f50741d781a
parent018b7669121d36bce48e9da3b5e34ae64933fa26
gfs2: Initialize iopen glock holder for new inodes

In gfs2_init_inode_once, initialize inode->i_iopen_gh.gh_gl to NULL:
otherwise, when gfs2_inode_lookup fails, the iopen glock holder can
remain unset and iget_failed can end up accessing random memory.

Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/main.c