[PATCH v6.1 2/2] ksmbd: fix potencial out-of-bounds when buffer offset is invalid