]> pilppa.com Git - linux-2.6-omap-h63xx.git/commit
usblp: Fix a double kfree
authorPete Zaitcev <zaitcev@redhat.com>
Tue, 14 Aug 2007 20:19:16 +0000 (13:19 -0700)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 12 Oct 2007 21:55:15 +0000 (14:55 -0700)
commit42cb967fd01b1f50374fdfa811f86db103eea532
tree01edefaaa9ab8ca7ede7f912ed83dab4d14a92c4
parentc36d54ab380fb8edeaa22776af869c64bfda43bd
usblp: Fix a double kfree

If submit fails, slab hits a BUG() because of a double kfree.
The today's lesson is, you cannot just slap USB_FREE_BUFFER on code
without adjusting the error paths.

The patch is made bigger by opportunistic refactoring.

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