diff options
| author | Dan Carpenter <[email protected]> | 2019-10-11 14:11:15 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-10-15 18:07:43 +0000 |
| commit | fd47a417e75e2506eb3672ae569b1c87e3774155 (patch) | |
| tree | 3098b5352d2a22355d77def24e5c11c88b193f83 /drivers/usb/cdns3/core.c | |
| parent | USB: legousbtower: fix memleak on disconnect (diff) | |
| download | kernel-fd47a417e75e2506eb3672ae569b1c87e3774155.tar.gz kernel-fd47a417e75e2506eb3672ae569b1c87e3774155.zip | |
USB: legousbtower: fix a signedness bug in tower_probe()
The problem is that sizeof() is unsigned long so negative error codes
are type promoted to high positive values and the condition becomes
false.
Fixes: 1d427be4a39d ("USB: legousbtower: fix slab info leak at probe")
Signed-off-by: Dan Carpenter <[email protected]>
Acked-by: Johan Hovold <[email protected]>
Link: https://lore.kernel.org/r/20191011141115.GA4521@mwanda
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/core.c')
0 files changed, 0 insertions, 0 deletions
