mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
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 <[email protected]> Reported-by: Sagi Grimberg <[email protected]> Tested-by: Sagi Grimberg <[email protected]> Cc: [email protected] # v3.17+ Signed-off-by: James Bottomley <[email protected]>
This commit is contained in:
parent
0351b8f813
commit
e727c42bd5
1 changed files with 1 additions and 0 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue