summaryrefslogtreecommitdiff
path: root/tools/lib/python
diff options
context:
space:
mode:
authorStanley Jhu <stanleyjhu@google.com>2026-10-15 08:18:52 +0800
committerMartin K. Petersen (Oracle) <mkp@kernel.org>2026-10-23 22:35:44 -0400
commit2e63ac76cc08ea376ba61fef52f7b7849e35024d (patch)
treee490b1af28dfe53c0211d81d498f4222551129e1 /tools/lib/python
parentcc0ce3fe8fac073ecded4f32c8ee5b89da1397e8 (diff)
scsi: ufs: bsg: Clear the reply buffer before use
The reply buffer is allocated once per tag and reused. Requests that complete with a positive status do not fill all of it, so user space receives bytes from an earlier request on the same tag. Clear the whole reply buffer on entry to ufs_bsg_request(). Fixes: 95e34bf930ea ("scsi: ufs-bsg: Add support for raw upiu in ufs_bsg_request()") Cc: stable@vger.kernel.org Signed-off-by: Stanley Jhu <stanleyjhu@google.com> Reviewed-by: Bean Huo <beanhuo@micron.com> Reviewed-by: Peter Wang <peter.wang@mediatek.com> Reviewed-by: Bart Van Assche <bvanassche@acm.org> Link: https://patch.msgid.link/20261015001855.3450573-3-stanleyjhu@google.com Signed-off-by: Martin K. Petersen (Oracle) <mkp@kernel.org>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions