diff options
author | Petr Vandrovec <[email protected]> | 2016-11-10 13:57:14 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2016-11-15 11:08:51 +0100 |
commit | 2ce9d2272b98743b911196c49e7af5841381c206 (patch) | |
tree | 3c1a53c027c1792333c50279e7074c47cec0d7b4 /lib/netdev-notifier-error-inject.c | |
parent | a25f0944ba9b1d8a6813fd6f1a86f1bd59ac25a6 (diff) |
Fix USB CB/CBI storage devices with CONFIG_VMAP_STACK=y
Some code (all error handling) submits CDBs that are allocated
on the stack. This breaks with CB/CBI code that tries to create
URB directly from SCSI command buffer - which happens to be in
vmalloced memory with vmalloced kernel stacks.
Let's make copy of the command in usb_stor_CB_transport.
Signed-off-by: Petr Vandrovec <[email protected]>
Cc: stable <[email protected]>
Acked-by: Alan Stern <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions