Re: [PATCH] scsi: ch: Do not keep references to data transfer element devices

From: Martin K. Petersen (Oracle)

Date: Mon Oct 05 2026 - 22:44:10 EST


On Tue, 22 Sep 2026 15:46:46 +0000, Ahmed Abdelhaleem Ahmed wrote:

> ch_readconfig() looks up the scsi_device of every data transfer element
> whose SCSI id the changer reports in READ ELEMENT STATUS, and stores it
> in ch->dt[]. scsi_device_lookup() takes a reference, and nothing ever
> drops it: ch_destroy() frees the array with kfree(). ch->dt[] is read
> nowhere else - it only supplies the vendor, model and revision printed
> in the same loop.
>
> [...]

Applied to 7.3/scsi-fixes, thanks!

[1/1] scsi: ch: Do not keep references to data transfer element devices
https://git.kernel.org/mkp/scsi/c/27c0f718d3b3

--
Martin K. Petersen