]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
misc: rtsx_usb: use separate command and response buffers
authorShuah Khan <skhan@linuxfoundation.org>
Fri, 1 Jul 2022 02:32:56 +0000 (20:32 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Jul 2022 15:05:45 +0000 (17:05 +0200)
commit242335b4667845e9581a322cb8a7ee66a06251e1
tree76b6cd55f41620ade4eb70afab4fcaaea8373da5
parent1a6af9d85019cc0969a9cf34af7d1181426ed22d
misc: rtsx_usb: use separate command and response buffers

[ Upstream commit 3776c78559853fd151be7c41e369fd076fb679d5 ]

rtsx_usb uses same buffer for command and response. There could
be a potential conflict using the same buffer for both especially
if retries and timeouts are involved.

Use separate command and response buffers to avoid conflicts.

Signed-off-by: Shuah Khan <skhan@linuxfoundation.org>
Cc: stable <stable@kernel.org>
Link: https://lore.kernel.org/r/07e3721804ff07aaab9ef5b39a5691d0718b9ade.1656642167.git.skhan@linuxfoundation.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/mfd/rtsx_usb.c
include/linux/mfd/rtsx_usb.h