aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorYongzhi Liu <[email protected]>2024-03-11 20:57:48 +0800
committerGreg Kroah-Hartman <[email protected]>2024-03-26 11:01:23 +0100
commit7c9631969287a5366bc8e39cd5abff154b35fb80 (patch)
tree47f5a1ef55f2851d88b3460b0b0083134ab40f2a /tools/perf/scripts/python/export-to-postgresql.py
parentf5e9bda03aa50ffad36eccafe893d004ef213c43 (diff)
usb: misc: ljca: Fix double free in error handling path
When auxiliary_device_add() returns error and then calls auxiliary_device_uninit(), callback function ljca_auxdev_release calls kfree(auxdev->dev.platform_data) to free the parameter data of the function ljca_new_client_device. The callers of ljca_new_client_device shouldn't call kfree() again in the error handling path to free the platform data. Fix this by cleaning up the redundant kfree() in all callers and adding kfree() the passed in platform_data on errors which happen before auxiliary_device_init() succeeds . Fixes: acd6199f195d ("usb: Add support for Intel LJCA device") Cc: stable <[email protected]> Signed-off-by: Yongzhi Liu <[email protected]> Reviewed-by: Hans de Goede <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions