aboutsummaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorChristian Engelmayer <cengelma@gmx.at>2014-01-28 22:22:27 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2014-02-05 11:39:30 -0800
commit7f196caffbf2dc96cc145bf5d2ef5ef8a7b4f687 (patch)
tree0454a2c0cadfac3273ee0f7b450500755417ef51 /scripts
parent76f24e3f39a1a94bab0d54e98899d64abcd9f69c (diff)
usb: core: Fix potential memory leak adding dyn USBdevice IDs
Fix a memory leak in the usb_store_new_id() error paths. When bailing out due to sanity checks, the function left the already allocated usb_dynid struct in place. This regression was introduced by the following commits: c63fe8f6 (usb: core: add sanity checks when using bInterfaceClass with new_id) 1b9fb31f (usb: core: check for valid id_table when using the RefId feature) 52a6966c (usb: core: bail out if user gives an unknown RefId when using new_id) Detected by Coverity: CID 1162604. Signed-off-by: Christian Engelmayer <cengelma@gmx.at> Acked-by: Wolfram Sang <wsa@the-dreams.de> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions