ums_realtek: do not use stack memory for DMA
authorAdam Cozzette <acozzette@cs.hmc.edu>
Wed, 24 Aug 2011 18:22:37 +0000 (12:22 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 11 Nov 2011 17:42:49 +0000 (09:42 -0800)
commit5de4a6505f61c1edd821e48795581a19f8f2d6dc
tree6d433fd6ec69f64926985ed00fed237728cd0974
parent3401c775a446527091f720a6c65a1ecc7644776a
ums_realtek: do not use stack memory for DMA

commit 065e60964e293227e4feb0c1f7e27e609316ed9a upstream.

This patch changes rts51x_read_mem, rts51x_write_mem, and rts51x_read_status to
allocate temporary buffers with kmalloc. This way stack addresses are not used
for DMA when these functions call rts51x_bulk_transport.

Signed-off-by: Adam Cozzette <acozzette@cs.hmc.edu>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/storage/realtek_cr.c