Skip to content

Commit 8eb604d

Browse files
committed
Merge tag 'v7.0-rc-part2-ksmbd-server-fixes' of git://git.samba.org/ksmbd
Pull smb server fixes from Steve French: "Two small fixes: - fix potential deadlock - minor cleanup" * tag 'v7.0-rc-part2-ksmbd-server-fixes' of git://git.samba.org/ksmbd: ksmbd: call ksmbd_vfs_kern_path_end_removing() on some error paths smb: server: Remove duplicate include of misc.h
2 parents d79526b + a09dc10 commit 8eb604d

2 files changed

Lines changed: 2 additions & 3 deletions

File tree

fs/smb/server/server.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@
2121
#include "mgmt/user_session.h"
2222
#include "crypto_ctx.h"
2323
#include "auth.h"
24-
#include "misc.h"
2524
#include "stats.h"
2625

2726
int ksmbd_debug_types;

fs/smb/server/smb2pdu.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6115,14 +6115,14 @@ static int smb2_create_link(struct ksmbd_work *work,
61156115
rc = -EINVAL;
61166116
ksmbd_debug(SMB, "cannot delete %s\n",
61176117
link_name);
6118-
goto out;
61196118
}
61206119
} else {
61216120
rc = -EEXIST;
61226121
ksmbd_debug(SMB, "link already exists\n");
6123-
goto out;
61246122
}
61256123
ksmbd_vfs_kern_path_end_removing(&path);
6124+
if (rc)
6125+
goto out;
61266126
}
61276127
rc = ksmbd_vfs_link(work, target_name, link_name);
61286128
if (rc)

0 commit comments

Comments
 (0)