diff options
author | Hobin Woo <hobin.woo@samsung.com> | 2024-09-04 07:36:35 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2024-10-04 17:29:48 +0300 |
commit | 3c1fd66a191485d9ad4c5a975695fb1bba2a1566 (patch) | |
tree | 88ec44a734f225785c2ee026f7acbe8a45e9822c /include/linux/fpga/fpga-mgr.h | |
parent | ef83620438d7b08cd66269c2262fcc2007cd5454 (diff) | |
download | linux-3c1fd66a191485d9ad4c5a975695fb1bba2a1566.tar.xz |
ksmbd: make __dir_empty() compatible with POSIX
commit ca4974ca954561e79f8871d220bb08f14f64f57c upstream.
Some file systems may not provide dot (.) and dot-dot (..) as they are
optional in POSIX. ksmbd can misjudge emptiness of a directory in those
file systems, since it assumes there are always at least two entries:
dot and dot-dot.
Just don't count dot and dot-dot.
Cc: stable@vger.kernel.org # v6.1+
Signed-off-by: Hobin Woo <hobin.woo@samsung.com>
Acked-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions