Messages in this thread | | | Subject | Re: [PATCH v2] scsi: sg: don't return bogus Sg_requests | From | "Martin K. Petersen" <> | Date | Thu, 11 May 2017 23:15:34 -0400 |
| |
Johannes,
> If the list search in sg_get_rq_mark() fails to find a valid request, > we return a bogus element. This then can later lead to a GPF in > sg_remove_scat(). > > So don't return bogus Sg_requests in sg_get_rq_mark() but NULL in case > the list search doesn't find a valid request.
Applied to 4.12/scsi-fixes, thanks!
-- Martin K. Petersen Oracle Linux Engineering
| |