summaryrefslogtreecommitdiffstats
path: root/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@redhat.com>2017-03-27 10:54:31 -0500
committerJustin M. Forbes <jforbes@redhat.com>2017-03-27 10:54:31 -0500
commitb915c3fde429a5dc7a99b7d05b56b8adfe2ac8f0 (patch)
tree6e860fbbbc36f664bd48785af0df2dd7b222abfb /scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
parent2f378031b2ceccf8969f78a14957947fc4ed2c6b (diff)
downloadkernel-b915c3fde429a5dc7a99b7d05b56b8adfe2ac8f0.tar.gz
kernel-b915c3fde429a5dc7a99b7d05b56b8adfe2ac8f0.tar.xz
kernel-b915c3fde429a5dc7a99b7d05b56b8adfe2ac8f0.zip
Linux v4.10.6 rebase
Diffstat (limited to 'scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch')
-rw-r--r--scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch2
1 files changed, 1 insertions, 1 deletions
diff --git a/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch b/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
index 7b9976517..a19267cc1 100644
--- a/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
+++ b/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
@@ -20,8 +20,8 @@ index 3d22fc3..07aec76 100644
- struct scsi_device *sdp = sdkp->device;
+ struct scsi_device *sdp;
struct request_queue *q = sdkp->disk->queue;
+ sector_t old_capacity = sdkp->capacity;
unsigned char *buffer;
- unsigned int dev_max, rw_max;
@@ -2833,6 +2833,11 @@ static int sd_revalidate_disk(struct gendisk *disk)
SCSI_LOG_HLQUEUE(3, sd_printk(KERN_INFO, sdkp,
"sd_revalidate_disk\n"));