diff options
author | Christophe JAILLET <christophe.jaillet@wanadoo.fr> | 2022-06-15 07:33:44 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2022-06-27 16:17:36 +0200 |
commit | 44fd1917314e9d4f53dd95dd65df1c152f503d3a (patch) | |
tree | 067595a51c5bbcba64e19300e1c16211e0e8fd80 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 9864bb4801331daa48514face9d0f4861e4d485b (diff) |
misc: rtsx: Fix an error handling path in rtsx_pci_probe()
If an error occurs after a successful idr_alloc() call, the corresponding
resource must be released with idr_remove() as already done in the .remove
function.
Update the error handling path to add the missing idr_remove() call.
Fixes: ada8a8a13b13 ("mfd: Add realtek pcie card reader driver")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/e8dc41716cbf52fb37a12e70d8972848e69df6d6.1655271216.git.christophe.jaillet@wanadoo.fr
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