smb3: Improve exception handling in allocate_mr_list()
authorMarkus Elfring <elfring@users.sourceforge.net>
Fri, 29 Dec 2023 19:43:12 +0000 (20:43 +0100)
committerSteve French <stfrench@microsoft.com>
Sun, 7 Jan 2024 21:46:06 +0000 (15:46 -0600)
commit96d566b6c933be96e9f5b216f04024ab522e0465
tree2de5a8c4792ef5e1137760b420498df83e7475a4
parent516eea97f92f1e7271f20835cfe9e73774b0f8cc
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/smb/client/smbdirect.c