firewire: cdev: fix memory leak in an error path
authorStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 7 Oct 2009 22:39:56 +0000 (00:39 +0200)
committerStefan Richter <stefanr@s5r6.in-berlin.de>
Wed, 14 Oct 2009 19:55:19 +0000 (21:55 +0200)
commit7e44c0b56b07a5e34de9943cfb2fee72e71a9f0e
treeb7b30a9d709f439423bb13ed07868d61ae546258
parenteaf76e0d027a917a013ad8a88a94132d0feab622
firewire: cdev: fix memory leak in an error path

If copy_from_user in an FW_CDEV_IOC_SEND_RESPONSE ioctl failed, an
inbound_transaction_resource instance is no longer referenced and needs
to be freed.

Signed-off-by: Stefan Richter <stefanr@s5r6.in-berlin.de>
drivers/firewire/core-cdev.c