diff options
author | James Smart <[email protected]> | 2017-06-15 23:40:54 -0700 |
---|---|---|
committer | Jens Axboe <[email protected]> | 2017-06-28 08:14:13 -0600 |
commit | 0b5a7669a457dd503b3d9922e931ecb01843a916 (patch) | |
tree | 634d2c3787b7897bc823457f51f9e9a24c9fe9a5 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 36715cf4b36688aa327d77ddb6bc5f740b01de94 (diff) |
nvme_fc: Fix crash when nvme controller connection fails.
If a controller connection is attempted (say to a subsystem that
does not exist), the first attempt errors out. If another connect
is attempted, it crashes.
Issue is the prior controller has yet execute it's final put, thus
its still on lists. However, opts points on it have been cleared, thus
causing the crash if they are referenced.
Fix is to add the missing put after the nvme_uninit_ctrl() call on
the attachment failure.
Signed-off-by: Paul Ely <[email protected]>
Signed-off-by: James Smart <[email protected]>
Signed-off-by: Sagi Grimberg <[email protected]>
Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions