diff options
author | Bui Quang Minh <[email protected]> | 2020-12-04 06:24:49 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2020-12-07 15:25:23 +0100 |
commit | e90cfa813da7a527785033a0b247594c2de93dd8 (patch) | |
tree | 03b8b6375ea204a1ca1e3e2ed5d8ff521facd60e /scripts/gdb/linux/config.py | |
parent | c7721e15f434920145c376e8fe77e1c079fc3726 (diff) |
USB: dummy-hcd: Fix uninitialized array use in init()
This error path
err_add_pdata:
for (i = 0; i < mod_data.num; i++)
kfree(dum[i]);
can be triggered when not all dum's elements are initialized.
Fix this by initializing all dum's elements to NULL.
Acked-by: Alan Stern <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Bui Quang Minh <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/config.py')
0 files changed, 0 insertions, 0 deletions