cifs: Fix missing credit release on failure in cifs_issue_read()
David Howells
maintainerPATCH 1/1 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")
Signed-off-by David Howells <[email protected]>
cc Steve French <[email protected]>
cc Paulo Alcantara <[email protected]>
--- fs/smb/client/file.c | 1 + 1 file changed, 1 insertion(+)
fs/smb/client/file.c +1 -0
@@ -241,6 +241,7 @@ static void cifs_issue_read(struct netfs_io_subrequest *subreq)return ; failed: +add_credits_and_wake_if (rdata->server, &rdata->credits,0 ); subreq->error = rc;netfs_read_subreq_terminated (subreq); }
Quoted 11 lines · David Howells
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")Signed-off-by David Howells <[email protected]>cc Steve French <[email protected]>cc Paulo Alcantara <[email protected]>
Quoted 3 lines
--- fs/smb/client/file.c | 1 + 1 file changed, 1 insertion(+)
merged into cifs-2.6.git for-next pending testing
Quoted 20 lines · Paulo Alcantara
Quoted 11 lines · David Howells
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")Signed-off-by David Howells <[email protected]>cc Steve French <[email protected]>cc Paulo Alcantara <[email protected]>Quoted 3 lines
--- fs/smb/client/file.c | 1 + 1 file changed, 1 insertion(+)
Signature · 3 lines
Thanks, Steve