diff options
author | Christophe JAILLET <[email protected]> | 2022-02-06 09:39:54 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2022-02-08 12:15:43 +0100 |
commit | 5b3dc949f554379edcb8ef6111aa5ecb78feb798 (patch) | |
tree | cdad83b3191294dfc0a1164afe2c4697ebf70a9c /tools/perf/scripts/python/stackcollapse.py | |
parent | 353b940c90d2b30ccdab17c1501883daf76b1afe (diff) |
misc: alcor_pci: Fix an error handling path
A successful ida_simple_get() should be balanced by a corresponding
ida_simple_remove().
Add the missing call in the error handling path of the probe.
While at it, switch to ida_alloc()/ida_free() instead to
ida_simple_get()/ida_simple_remove().
The latter is deprecated and more verbose.
Fixes: 4f556bc04e3c ("misc: cardreader: add new Alcor Micro Cardreader PCI driver")
Reviewed-by: Oleksij Rempel <[email protected]>
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/918a9875b7f67b7f8f123c4446452603422e8c5e.1644136776.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions