aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/bin
diff options
context:
space:
mode:
authorHannes Reinecke <[email protected]>2020-02-13 16:32:05 +0100
committerMartin K. Petersen <[email protected]>2020-02-24 14:54:24 -0500
commit66167283c21ef8ce35253397108263bdab258992 (patch)
treec8165e7f672be42e2c67d4b1f2c6b5bc7b5d0ee0 /tools/perf/scripts/python/bin
parent1939295a8dfa7be1cea478d6d7d283c091b780d4 (diff)
scsi: ch: fixup refcounting imbalance for SCSI devices
The SCSI device is required to be present during ch_probe() and ch_open(). But the SCSI device itself is only checked during ch_open(), so it's anyones guess if it had been present during ch_probe(). And consequently we can't reliably detach it during ch_release(), as ch_remove() might have been called first. So initialize the changer device during ch_probe(), and take a reference to the SCSI device during both ch_probe() and ch_open(). [mkp: fixed checkpatch warning] Link: https://lore.kernel.org/r/[email protected] Reviewed-by: Bart Van Assche <[email protected]> Signed-off-by: Hannes Reinecke <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions