Skip to content

Commit 19421ec

Browse files
metze-sambasmfrench
authored andcommitted
smb: client: let destroy_mr_list() call list_del(&mr->list)
This makes the code clearer and will make further changes easier. Cc: Steve French <smfrench@gmail.com> Cc: Tom Talpey <tom@talpey.com> Cc: Long Li <longli@microsoft.com> Cc: Namjae Jeon <linkinjeon@kernel.org> Cc: linux-cifs@vger.kernel.org Cc: samba-technical@lists.samba.org Signed-off-by: Stefan Metzmacher <metze@samba.org> Signed-off-by: Steve French <stfrench@microsoft.com>
1 parent abe5b71 commit 19421ec

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

fs/smb/client/smbdirect.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2363,6 +2363,7 @@ static void destroy_mr_list(struct smbdirect_socket *sc)
23632363
mr->sgt.nents, mr->dir);
23642364
ib_dereg_mr(mr->mr);
23652365
kfree(mr->sgt.sgl);
2366+
list_del(&mr->list);
23662367
kfree(mr);
23672368
}
23682369
}

0 commit comments

Comments
 (0)