Alexander Aring 700ed41bf6 dlm: fix user space lkb refcounting
[ Upstream commit 2ab3d705ca5d4f7ea345a21c3da41a447a549649 ]

This patch fixes to check on the right return value if it was the last
callback. The rv variable got overwritten by the return of
copy_result_to_user(). Fixing it by introducing a second variable for
the return value and don't let rv being overwritten.

Cc: stable@vger.kernel.org
Fixes: 61bed0baa4db ("fs: dlm: use a non-static queue for callbacks")
Reported-by: Valentin Vidić <vvidic@valentin-vidic.from.hr>
Closes: https://lore.kernel.org/gfs2/Ze4qSvzGJDt5yxC3@valentin-vidic.from.hr
Signed-off-by: Alexander Aring <aahringo@redhat.com>
Signed-off-by: David Teigland <teigland@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2024-04-03 15:28:32 +02:00
..
2023-03-06 15:49:07 -06:00
2024-01-25 15:35:17 -08:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-03-06 15:49:07 -06:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-03-06 15:49:07 -06:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-11-20 11:59:21 +01:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2023-08-10 10:33:03 -05:00
2024-04-03 15:28:32 +02:00
2022-04-06 14:02:37 -05:00
2022-04-06 14:02:37 -05:00