mirror of
https://github.com/rd-stuffs/msm-4.14.git
synced 2025-02-20 11:45:48 +08:00
UPSTREAM: USB: dummy-hcd: increase max number of devices to 32
(Upstream commit 8442b02bf3c6770e0d7e7ea17be36c30e95987b6.) When fuzzing the USB subsystem with syzkaller, we currently use 8 testing processes within one VM. To isolate testing processes from one another it is desirable to assign a dedicated USB bus to each of those, which means we need at least 8 Dummy UDC/HCD devices. This patch increases the maximum number of Dummy UDC/HCD devices to 32 (more than 8 in case we need more of them in the future). Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Link: https://lore.kernel.org/r/665578f904484069bb6100fb20283b22a046ad9b.1571667489.git.andreyknvl@google.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Andrey Konovalov <andreyknvl@google.com> Bug: 147413187 Change-Id: I09d161f22c639b5b4864d38dcff2c967019b2e7c
This commit is contained in:
parent
30b987d1af
commit
e7da360e27
@ -2741,7 +2741,7 @@ static struct platform_driver dummy_hcd_driver = {
|
||||
};
|
||||
|
||||
/*-------------------------------------------------------------------------*/
|
||||
#define MAX_NUM_UDC 2
|
||||
#define MAX_NUM_UDC 32
|
||||
static struct platform_device *the_udc_pdev[MAX_NUM_UDC];
|
||||
static struct platform_device *the_hcd_pdev[MAX_NUM_UDC];
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user