[lvc-project] [PATCH] ksmbd: remove redundant DACL check in smb_check_perm_dacl

Namjae Jeon linkinjeon at kernel.org
Thu Dec 11 04:37:48 MSK 2025


On Wed, Dec 10, 2025 at 10:52 PM Alexey Velichayshiy
<a.velichayshiy at ispras.ru> wrote:
>
> A zero value of pdacl->num_aces is already handled at the start of
> smb_check_perm_dacl() so the second check is useless.
>
> Drop the unreachable code block, no functional impact intended.
>
> Found by Linux Verification Center (linuxtesting.org) with SVACE.
>
> Signed-off-by: Alexey Velichayshiy <a.velichayshiy at ispras.ru>
Applied it to #ksmbd-for-next-next.
Thanks!



More information about the lvc-project mailing list