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:14:16 +0000 (10:14 +0200)
commitd4f97441cb888cf53b88f38ac0dc6bbe3a044910
tree4a55966a6e85a7819dcd2eaf22df05ab49cb316c
parent11bf4a8e1d5a300b38ca4bbe1156716b0174f2da
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