diff options
author | 2013-08-15 14:37:42 -0500 | |
---|---|---|
committer | 2013-08-15 17:36:27 -0700 | |
commit | 79731cbd783d3693d4b84731e3cfc79b9f828170 (patch) | |
tree | fbddbce062055bdc3d02d5d1c8bd9db294c02ead /tools/perf/scripts/python/export-to-postgresql.py | |
parent | USB: WUSBCORE: fix resource cleanup in error path in __wa_xfer_setup_segs (diff) | |
download | linux-dev-79731cbd783d3693d4b84731e3cfc79b9f828170.tar.xz linux-dev-79731cbd783d3693d4b84731e3cfc79b9f828170.zip |
USB: WUSBCORE: fix leak of urb in wa_xfer_destroy.
The check to free the URB was the opposite of the correct case. This
patch removes the check altogether since the ptr will be NULL if the URB
was not allocated. Also use usb_free_urb instead of usb_put_urb.
Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions