commit | c93d81955005c2ac0ea072f88d376026208410e1 | [log] [tgz] |
---|---|---|
author | Alexey Khoroshilov <khoroshilov@ispras.ru> | Sat Mar 16 01:30:32 2013 +0400 |
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | Thu Mar 21 15:59:01 2013 -0700 |
tree | bae48113a39cf83c55a8f25316d5c78bdd203061 | |
parent | d93acbcacdec04dbdab0d1cc35457eb3bf1d2a38 [diff] |
usb: cdc-acm: fix error handling in acm_probe() acm_probe() ignores errors in tty_port_register_device() and leaves intfdata pointing to freed memory on alloc_fail7 error path. The patch fixes the both issues. Found by Linux Driver Verification project (linuxtesting.org). Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Acked-by: Oliver Neukum <oliver@neukum.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>