mirror of
https://github.com/hardkernel/linux.git
synced 2026-04-05 20:53:04 +09:00
[ Upstream commit6ae7d0f5a9] The error handling path is broken and we may un-register things that have never been registered. Update the loops index accordingly. Fixes:9842c38e91("kfifo: fix warn_unused_result") Suggested-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr> Link: https://lore.kernel.org/r/e28c2e92c7475da25b03d022ea2d6dcf1ba807a2.1621968629.git.christophe.jaillet@wanadoo.fr Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Sasha Levin <sashal@kernel.org>