Re: [PATCH v3] scsi: pm8001: Fix use-after-free in pm8001_queue_command()

From: Martin K. Petersen

Date: Tue Feb 17 2026 - 21:36:56 EST



Salomon,

> Commit e29c47fe8946 ("scsi: pm8001: Simplify pm8001_task_exec()")
> refactors pm8001_queue_command(), however it introduces a potential
> cause of a double free scenario when it changes the function to return
> -ENODEV in case of phy down/device gone state.

Applied to 7.0/scsi-staging, thanks!

--
Martin K. Petersen