usb: storage: Zero CDB out before sending it
Since cbw.Length can be less that sizeof(cbw.CDB), add code to zero
the whole struct out to avoid sending random stack data as a part of
payload. There's no known case where this causes a problem, but it's a
reasonable thing to do anyway.

Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9b8ed55 commit 85de58c03ccd20764dd5afa2efc8b2f1380c4259
@Andrey Smirnov Andrey Smirnov authored on 22 May 2019
Sascha Hauer committed on 23 May 2019
Showing 1 changed file
View
drivers/usb/storage/transport.c