Commit 2fd4d42b authored by Catalin Boie's avatar Catalin Boie Committed by Greg Kroah-Hartman

[PATCH] USB: cdc-acm-usb-use-uninit-mem-bug.patch

Attached is a patch for cdc-acm out of bounds access.
Signed-off-by: default avatarCatalin(ux aka Dino) BOIE <catab@umbrella.ro>
Signed-off-by: default avatarGreg Kroah-Hartman <greg@kroah.com>
parent 2290c377
...@@ -653,7 +653,7 @@ static int acm_probe (struct usb_interface *intf, ...@@ -653,7 +653,7 @@ static int acm_probe (struct usb_interface *intf,
dbg("interfaces are valid"); dbg("interfaces are valid");
for (minor = 0; minor < ACM_TTY_MINORS && acm_table[minor]; minor++); for (minor = 0; minor < ACM_TTY_MINORS && acm_table[minor]; minor++);
if (acm_table[minor]) { if (minor == ACM_TTY_MINORS) {
err("no more free acm devices"); err("no more free acm devices");
return -ENODEV; return -ENODEV;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment