[PATCH 5.9 24/75] cifs: refactor create_sd_buf() and and avoid corrupting the buffer