]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
cdc-acm: memory leak in error case
authorOliver Neukum <oneukum@suse.de>
Thu, 20 Nov 2014 13:54:35 +0000 (14:54 +0100)
committerJiri Slaby <jslaby@suse.cz>
Mon, 26 Jan 2015 13:38:58 +0000 (14:38 +0100)
commitb38841c614577800be3d9018f6455a8ee96d8855
tree5d9c20ad83479ba4b35416df68cbf2d58b0660cb
parentfaabc4f5c3b94993ca781a03ead160bf5248c7db
cdc-acm: memory leak in error case

commit d908f8478a8d18e66c80a12adb27764920c1f1ca upstream.

If probe() fails not only the attributes need to be removed
but also the memory freed.

Reported-by: Ahmed Tamrawi <ahmedtamrawi@gmail.com>
Signed-off-by: Oliver Neukum <oneukum@suse.de>
Signed-off-by: Jiri Slaby <jslaby@suse.cz>
drivers/usb/class/cdc-acm.c