diff options
| author | Christophe JAILLET <[email protected]> | 2022-04-22 08:48:18 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2022-04-22 16:48:31 +0200 |
| commit | 7079b3483a17be2cfba64cbd4feb1b7ae07f1ea7 (patch) | |
| tree | 4b5c0beee8245be733e1455013bbfd28f0d71e09 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 15210fd36ed362a04bbbfb3af6138a36ef7f90a3 (diff) | |
staging: fieldbus: Fix the error handling path in anybuss_host_common_probe()
If device_register() fails, device_unregister() should not be called
because it will free some resources that are not allocated.
put_device() should be used instead.
Fixes: 308ee87a2f1e ("staging: fieldbus: anybus-s: support HMS Anybus-S bus")
Signed-off-by: Christophe JAILLET <[email protected]>
Link: https://lore.kernel.org/r/5401a519608d6e1a4e7435c20f4f20b0c5c36c23.1650610082.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions