mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:04:51 +01:00
two small server fixes
-----BEGIN PGP SIGNATURE----- iQGzBAABCgAdFiEE6fsu8pdIjtWE/DpLiiy9cAdyT1EFAmmYg8MACgkQiiy9cAdy T1HLbAwAjr1Eg4hDbI1GBLxFkB5pTxYmnHtj8eFJLNXpmpfe4/4f29e7S7hs3ChX UIIbFAFKPWAC7dFwAQ8rnYw4e3HPv+eFZxDzfi9Org8TxYGL9kew8JnqZtvCYtQd bHFndrZW3C8x2kj08O6uA0WWIhpCffZ4avig4Azkw5a6ukLzEpsLcODyJb/9Dx4Y EbHNjYZX3MMbbtNh47Bo2JVNjk5Nyxzf1kSdA46eHa5aQoy8DbMuJqFj0b9oUxqh E6QBPeZ0aZuSQZQUh3LtHnDS/aqFAn4zchtwALhHephU3SQZ1pLR8Uz+IwFI70MK bOCWI//LCGvdcXqJ6rspLplte9O6SoFNyqo+PuH1lnWCknnFNVKJWlOiu9LZnNe0 G99VONqwdKlXs5MDVp2LVpW5VbxJEw5TsrWGQJL6FGMGWiSDPt4rpcA/ugokKhVr aeqlV3dWXBJcKIE9G+8XHNn5lwsgfI4bfs8phdrKxEVSshEZbu/B2hg6X+f2guWJ poF2ZJ4g =UcGf -----END PGP SIGNATURE----- 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:
commit
8eb604d4ee
2 changed files with 2 additions and 3 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue