usb: qcserial avoid pointing to freed memory
authorSteven Hardy <shardy@redhat.com>
Mon, 4 Apr 2011 16:59:55 +0000 (17:59 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 13 Apr 2011 22:53:16 +0000 (15:53 -0700)
commit99ab3f9e4eaec35fd2d7159c31b71f17f7e613e3
tree59223dfce886e17092fe093e74e11a1a36453e71
parent10c9ab15d6aee153968d150c05b3ee3df89673de
usb: qcserial avoid pointing to freed memory

Rework the qcprobe logic such that serial->private is not set when
qcprobe exits with -ENODEV, otherwise serial->private will point to freed
memory on -ENODEV

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