]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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>
Thu, 21 Apr 2011 21:32:55 +0000 (14:32 -0700)
commit4f377dfbba0ff6d83fcf9f4939d51ca54b8d4485
tree24062fcc14c96432d3280a3c638bd00174d19e73
parenta14f54520a7a50f1d591d848c65955eb0feb993b
usb: qcserial avoid pointing to freed memory

commit 99ab3f9e4eaec35fd2d7159c31b71f17f7e613e3 upstream.

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