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

Commit e2a8085e authored by Subhash Jadavani's avatar Subhash Jadavani
Browse files

scsi: sd: add null pointer check for scsi disk pointer



scsi disk driver probe first calls the PM runtime get before actually
allocating the scsi disk structure and if the PM runtime status was set
to suspended at this time then it will trigger scsi disk driver's
resume callback. But scsi disk driver's resume callback assumes that
scsi disk structure is always available when it is called but that's not
true always. Fix this issue by skipping the scsi disk resume if scsi disk
structure isn't allocated.

Change-Id: Ica920b1e07976140dc29847f4dc61aac9fa402ae
Signed-off-by: default avatarSubhash Jadavani <subhashj@codeaurora.org>
parent 40b49a34
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