ANDROID: dm verity fec: add missing release from fec_ktype
authorSami Tolvanen <samitolvanen@google.com>
Fri, 3 Jun 2016 21:22:46 +0000 (14:22 -0700)
committerSami Tolvanen <samitolvanen@google.com>
Tue, 7 Jun 2016 19:50:09 +0000 (12:50 -0700)
Add a release function to allow destroying the dm-verity device.

Bug: 27928374
Signed-off-by: Sami Tolvanen <samitolvanen@google.com>
Change-Id: Ic0f7c17e4889c5580d70b52d9a709a37165a5747
(cherry picked from commit 0039ccf47c8f99888f7b71b2a36a68a027fbe357)

drivers/md/dm-verity-fec.c

index b26809a47ca37ddc50fc2df392c51faa92c1b5b6..454535d23a7f4b5eab481632d643185fbb60cd4d 100644 (file)
@@ -689,7 +689,8 @@ static struct attribute *fec_attrs[] = {
 
 static struct kobj_type fec_ktype = {
        .sysfs_ops = &kobj_sysfs_ops,
-       .default_attrs = fec_attrs
+       .default_attrs = fec_attrs,
+       .release = dm_kobject_release
 };
 
 /*