GFS2: Fix reference to ERR_PTR in gfs2_glock_iter_next
authorDan Carpenter <dan.carpenter@oracle.com>
Wed, 14 Dec 2016 14:02:03 +0000 (08:02 -0600)
committerBob Peterson <rpeterso@redhat.com>
Fri, 16 Dec 2016 01:30:07 +0000 (19:30 -0600)
commit14d37564fa3dc4e5d4c6828afcd26ac14e6796c5
treeb783969930df94ddfc2f4f6ad5d3e23deee55e50
parenta3443cda5588985a2724d6d0f4a5f04e625be6eb
GFS2: Fix reference to ERR_PTR in gfs2_glock_iter_next

This patch fixes a place where function gfs2_glock_iter_next can
reference an invalid error pointer.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Bob Peterson <rpeterso@redhat.com>
fs/gfs2/glock.c