]> git.baikalelectronics.ru Git - kernel.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>
Tue, 12 Jul 2022 14:35:17 +0000 (16:35 +0200)
commit0a0ff5de723433592949a619df4352708a957b8e
tree3485f636dda2b1feacaff980b5ce540ae2a797e8
parentdebbc71d19ce415f1532a5d24a0ce3b5000bb922
misc: rtsx_usb: use separate command and response buffers

commit ba8e70f9f53713743889e36e3942d7ef0d737fc3 upstream.

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>
drivers/misc/cardreader/rtsx_usb.c
include/linux/rtsx_usb.h