smb3: Improve exception handling in allocate_mr_list()
authorSteve French <stfrench@microsoft.com>
Sun, 28 Jan 2024 22:31:00 +0000 (16:31 -0600)
committerSteve French <stfrench@microsoft.com>
Sun, 28 Jan 2024 22:31:00 +0000 (16:31 -0600)
commit432c856889bc667e951b3c78bf36ece94348de52
tree30ff0d4227178f2418901206923396414fe48e58
parent3f173e766dbffbdfc3bbce8d195e021f31daedbc
smb3: Improve exception handling in allocate_mr_list()

The kfree() function was called in one case by
the allocate_mr_list() function during error handling
even if the passed variable contained a null pointer.
This issue was detected by using the Coccinelle software.

Thus use another label.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
Signed-off-by: Steve French <stfrench@microsoft.com>
fs/cifs/smbdirect.c