[netdrvr/usb] hso_create_bulk_serial_device(): fix a double free
authorAdrian Bunk <bunk@kernel.org>
Wed, 27 Aug 2008 22:02:37 +0000 (01:02 +0300)
committerJeff Garzik <jgarzik@redhat.com>
Wed, 24 Sep 2008 22:49:03 +0000 (18:49 -0400)
commite57b641dfafc10ce23d26cf271fd2638589fdb3f
treef5e4bf382cffe1b82cc75b3017fe014649e70029
parent54069511633ca9d5b4e5d45cf32ffea06697c88b
[netdrvr/usb] hso_create_bulk_serial_device(): fix a double free

hso_serial_common_free() mustn't be called if
hso_serial_common_create() fails.

Reported-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Jeff Garzik <jgarzik@redhat.com>
drivers/net/usb/hso.c