mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-03-22 07:27:12 +08:00
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
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
#include "mgmt/user_session.h"
|
||||
#include "crypto_ctx.h"
|
||||
#include "auth.h"
|
||||
#include "misc.h"
|
||||
#include "stats.h"
|
||||
|
||||
int ksmbd_debug_types;
|
||||
|
||||
@@ -6115,14 +6115,14 @@ static int smb2_create_link(struct ksmbd_work *work,
|
||||
rc = -EINVAL;
|
||||
ksmbd_debug(SMB, "cannot delete %s\n",
|
||||
link_name);
|
||||
goto out;
|
||||
}
|
||||
} else {
|
||||
rc = -EEXIST;
|
||||
ksmbd_debug(SMB, "link already exists\n");
|
||||
goto out;
|
||||
}
|
||||
ksmbd_vfs_kern_path_end_removing(&path);
|
||||
if (rc)
|
||||
goto out;
|
||||
}
|
||||
rc = ksmbd_vfs_link(work, target_name, link_name);
|
||||
if (rc)
|
||||
|
||||
Reference in New Issue
Block a user