History

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

Linus Torvalds committed 8 months ago

Commit 8eb604d2 parents d79526b a09dc102 files · +2 −3Browse files

Unified · Split

2 files
  1. fs/smb/server/server.c +0 −1
  2. fs/smb/server/smb2pdu.c +2 −2
fs/smb/server/server.c+0−1
@@ -21,7 +21,6 @@ · 20 unmodified lines
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+2−2
@@ -6115,14 +6115,14 @@ static int smb2_create_link(struct ksmbd_work *work, · 6114 unmodified lines
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)

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t