]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.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>
Wed, 13 Apr 2011 22:53:16 +0000 (15:53 -0700)
commitcb62d65f966146a39fdde548cb474dacf1d00fa5
tree52ad1605b719a2891ba3ed49066cc6e11c589142
parent99ab3f9e4eaec35fd2d7159c31b71f17f7e613e3
usb: qcserial add missing errorpath kfrees

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>
Cc: stable <stable@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/qcserial.c