aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2010-02-16 12:35:07 -0800
committerGreg Kroah-Hartman <gregkh@suse.de>2010-02-16 15:11:02 -0800
commitddeee0b2eec2a51b0712b04de4b39e7bec892a53 (patch)
tree21565d9ce53d9a8ffc3b9ee650305316fda8f0d5 /drivers/usb/serial/ftdi_sio.c
parentd4a4683ca054ed9917dfc9e3ff0f7ecf74ad90d6 (diff)
USB: usbfs: properly clean up the as structure on error paths
I notice that the processcompl_compat() function seems to be leaking the 'struct async *as' in the error paths. I think that the calling convention is fundamentally buggered. The caller is the one that did the "reap_as()" to get the as thing, the caller should be the one to free it too. Freeing it in the caller also means that it very clearly always gets freed, and avoids the need for any "free in the error case too". From: Linus Torvalds <torvalds@linux-foundation.org> Cc: Alan Stern <stern@rowland.harvard.edu> Cc: Marcus Meissner <meissner@suse.de> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
0 files changed, 0 insertions, 0 deletions