sd: Unregister integrity profile
authorMartin K. Petersen <martin.petersen@oracle.com>
Tue, 14 Apr 2015 20:56:23 +0000 (16:56 -0400)
committerJames Bottomley <JBottomley@Odin.com>
Thu, 16 Apr 2015 17:36:14 +0000 (10:36 -0700)
commite727c42bd55794765c460b7ac2b6cc969f2a9698
treedd02fc5cafdbeb30a90ee9a700df301f887b26f4
parent0351b8f81392c6dbbbb036e5c8f73ceff68726e9
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>
drivers/scsi/sd.c