summaryrefslogtreecommitdiffstats
path: root/scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
diff options
context:
space:
mode:
authorJustin M. Forbes <jforbes@redhat.com>2016-12-14 12:50:48 -0600
committerJustin M. Forbes <jforbes@redhat.com>2016-12-14 12:50:48 -0600
commit962ea4f047b3b4b4360446be4289c4e4deb29551 (patch)
tree0a13142b9219114c8902cac2b45fe9c7abc96897 /scsi-sd_revalidate_disk-prevent-NULL-ptr-deref.patch
parentb31b0fb7f4d47143f49fdbc50e7c0da678c0540b (diff)
downloadkernel-962ea4f047b3b4b4360446be4289c4e4deb29551.tar.gz
kernel-962ea4f047b3b4b4360446be4289c4e4deb29551.tar.xz
kernel-962ea4f047b3b4b4360446be4289c4e4deb29551.zip
Linux v4.9-7150-gcdb98c2
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"));