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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 8 Oct 2017 08:26:02 +0000 (10:26 +0200)
commit97766c6a8e586308d89309591f73aa3bc5ce0643
tree564ddb9aa0e47cba35488a3e0c757436c196afbb
parente236940a87f125de78f94efc44d4a6db043c26d6
GFS2: Fix reference to ERR_PTR in gfs2_glock_iter_next

[ Upstream commit 14d37564fa3dc4e5d4c6828afcd26ac14e6796c5 ]

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>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
fs/gfs2/glock.c