]> git.karo-electronics.de Git - karo-tx-linux.git/commit
usb: qcserial add missing errorpath kfrees
authorSteven Hardy <shardy@redhat.com>
Mon, 4 Apr 2011 17:02:25 +0000 (18:02 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 21 Apr 2011 21:32:55 +0000 (14:32 -0700)
commitc0cc35919317b579b23514c1385f246f348852ad
tree8884458310a5aeb1ad6e4563cddf679ad3626df2
parent4f377dfbba0ff6d83fcf9f4939d51ca54b8d4485
usb: qcserial add missing errorpath kfrees

commit cb62d65f966146a39fdde548cb474dacf1d00fa5 upstream.

There are two -ENODEV error paths in qcprobe where the allocated private
data is not freed, this patch adds the two missing kfrees to avoid
leaking memory on the error path

Signed-off-by: Steven Hardy <shardy@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/qcserial.c