ksmbd: fix same UniqueId for dot and dotdot entries
authorNamjae Jeon <linkinjeon@kernel.org>
Sun, 30 Jan 2022 09:28:56 +0000 (18:28 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:03:17 +0000 (12:03 +0100)
commit03dd71e0b9d8e9dac462f51aad69455c5a7a25da
treee8f2da9d247d9d4a4d227341cbb0bc859d09353c
parent7afed8b3608e15422ad2a5ffa7d329b627673804
ksmbd: fix same UniqueId for dot and dotdot entries

[ Upstream commit 97550c7478a2da93e348d8c3075d92cddd473a78 ]

ksmbd sets the inode number to UniqueId. However, the same UniqueId for
dot and dotdot entry is set to the inode number of the parent inode.
This patch set them using the current inode and parent inode.

Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
fs/ksmbd/smb_common.c