mirror of
https://github.com/torvalds/linux.git
synced 2026-05-28 09:04:39 +02:00
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>
This commit is contained in:
parent
abe5b71c39
commit
19421ec198
|
|
@ -2363,6 +2363,7 @@ static void destroy_mr_list(struct smbdirect_socket *sc)
|
|||
mr->sgt.nents, mr->dir);
|
||||
ib_dereg_mr(mr->mr);
|
||||
kfree(mr->sgt.sgl);
|
||||
list_del(&mr->list);
|
||||
kfree(mr);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user