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

Commit 7dfc7cd4 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

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

parents ecf59c7b e2a8085e
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -3230,6 +3230,9 @@ static int sd_resume(struct device *dev)
	struct scsi_disk *sdkp = scsi_disk_get_from_dev(dev);
	int ret = 0;

	if (!sdkp)
		return 0;	/* this can happen */

	if (!sdkp->device->manage_start_stop)
		goto done;