cifs: Fix missing credit release on failure in cifs_issue_read()
authorDavid Howells <dhowells@redhat.com>
Thu, 2 Jul 2026 08:25:00 +0000 (09:25 +0100)
committerSteve French <stfrench@microsoft.com>
Thu, 2 Jul 2026 14:16:03 +0000 (09:16 -0500)
commitc16b8c4cfb4fe2244cc33e469a93c1ab8684146b
tree384ac536492623d31a77aa97caf68082614929d9
parent1b7a6da1d617876fbccd98da9bf1c2368e4f9424
cifs: Fix missing credit release on failure in cifs_issue_read()

Fix missing release of credits in the failure path in cifs_issue_read()
lest retrying the subreq just overwrites the credits value.

Fixes: 69c3c023af25 ("cifs: Implement netfslib hooks")
Link: https://sashiko.dev/#/patchset/20260608145432.681865-1-dhowells%40redhat.com
Signed-off-by: David Howells <dhowells@redhat.com>
Acked-by: Paulo Alcantara (Red Hat) <pc@manguebit.org>
cc: linux-cifs@vger.kernel.org
cc: netfs@lists.linux.dev
cc: linux-fsdevel@vger.kernel.org
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/smb/client/file.c