]> err.no Git - linux-2.6/commit
USB: Fix error cleanup path in airprime
authorPete Zaitcev <zaitcev@redhat.com>
Sat, 3 Feb 2007 07:13:14 +0000 (23:13 -0800)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 16 Feb 2007 23:32:18 +0000 (15:32 -0800)
commitaf59cf404fc7ad6cc642de9e78252fb264917611
tree0c70ca5d995fb1814fffd02ec9a5adb0b6e246d1
parent23004e241ccc03678592a8b392573e8514ec962f
USB: Fix error cleanup path in airprime

Fix up the error processing path: in usb_submit_urb failed, we forgot
to free buffers. Also, don't free buffers in read callback: less error
prone, 21 LOC less, no need to comment so much. N.B. write path is ok
to do kfree.

Signed-off-by: Pete Zaitcev <zaitcev@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/serial/airprime.c