diff options
author | Martin K. Petersen <martin.petersen@oracle.com> | 2015-04-14 16:56:23 -0400 |
---|---|---|
committer | James Bottomley <JBottomley@Odin.com> | 2015-04-16 10:36:14 -0700 |
commit | e727c42bd55794765c460b7ac2b6cc969f2a9698 (patch) | |
tree | dd02fc5cafdbeb30a90ee9a700df301f887b26f4 /drivers/scsi/sd.c | |
parent | 0351b8f81392c6dbbbb036e5c8f73ceff68726e9 (diff) | |
download | linux-stable-e727c42bd55794765c460b7ac2b6cc969f2a9698.tar.gz linux-stable-e727c42bd55794765c460b7ac2b6cc969f2a9698.tar.bz2 linux-stable-e727c42bd55794765c460b7ac2b6cc969f2a9698.zip |
sd: Unregister integrity profile
The new integrity code did not correctly unregister the profile for SD
disks. Call blk_integrity_unregister() when we release a disk.
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Reported-by: Sagi Grimberg <sagig@dev.mellanox.co.il>
Tested-by: Sagi Grimberg <sagig@mellanox.com>
Cc: stable@vger.kernel.org # v3.17+
Signed-off-by: James Bottomley <JBottomley@Odin.com>
Diffstat (limited to 'drivers/scsi/sd.c')
-rw-r--r-- | drivers/scsi/sd.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/scsi/sd.c b/drivers/scsi/sd.c index dcc42446f58a..79beebf53302 100644 --- a/drivers/scsi/sd.c +++ b/drivers/scsi/sd.c @@ -3076,6 +3076,7 @@ static void scsi_disk_release(struct device *dev) ida_remove(&sd_index_ida, sdkp->index); spin_unlock(&sd_index_lock); + blk_integrity_unregister(disk); disk->private_data = NULL; put_disk(disk); put_device(&sdkp->device->sdev_gendev); |