Re: [PATCH v4] scsi: mpi3mr: fix possible crash when setup bsg fail

Martin K. Petersen
2025-01-10T23:08:04Z

Guixin,

> If bsg_setup_queue() fails, the bsg_queue is assigned a non-NULL
> value. Consequently, in mpi3mr_bsg_exit(), the condition
> "if(!mrioc->bsg_queue)" will not be satisfied, preventing execution
> from entering bsg_remove_queue(), which could lead to the following
> crash:

Applied to 6.14/scsi-staging, thanks!

--
Martin K. Petersen Oracle Linux Engineering