Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit cb2e955c authored by Johannes Thumshirn's avatar Johannes Thumshirn Committed by Srinivasa Rao Kuppala
Browse files

UPSTREAM: scsi: sg: don't return bogus Sg_requests



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.

Bug: 79090045
Signed-off-by: default avatarJohannes Thumshirn <jthumshirn@suse.de>
Reported-by: default avatarAndrey Konovalov <andreyknvl@google.com>
Cc: Hannes Reinecke <hare@suse.de>
Cc: Christoph Hellwig <hch@lst.de>
Cc: Doug Gilbert <dgilbert@interlog.com>
Reviewed-by: default avatarHannes Reinecke <hare@suse.de>
Acked-by: default avatarDoug Gilbert <dgilbert@interlog.com>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarChenbo Feng <fengc@google.com>
Git-repo: https://android.googlesource.com/kernel/msm


Git-commit: 58408c68e4d7abc1957ca8cc3fec69619578b06a
Change-Id: If95d1a8eef3748c9937201e524184b89a5eaaf2e
Bug: 75300370
Signed-off-by: default avatarSrinivasa Rao Kuppala <srkupp@codeaurora.org>
parent cc91635a
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment