From: Sami Tolvanen Date: Fri, 3 Jun 2016 21:22:46 +0000 (-0700) Subject: ANDROID: dm verity fec: add missing release from fec_ktype X-Git-Tag: firefly_0821_release~176^2~388 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=5db5b648730e1d70d07bfa21c28854c05d8d0329;p=firefly-linux-kernel-4.4.55.git ANDROID: dm verity fec: add missing release from fec_ktype Add a release function to allow destroying the dm-verity device. Bug: 27928374 Signed-off-by: Sami Tolvanen Change-Id: Ic0f7c17e4889c5580d70b52d9a709a37165a5747 (cherry picked from commit 0039ccf47c8f99888f7b71b2a36a68a027fbe357) --- diff --git a/drivers/md/dm-verity-fec.c b/drivers/md/dm-verity-fec.c index b26809a47ca3..454535d23a7f 100644 --- a/drivers/md/dm-verity-fec.c +++ b/drivers/md/dm-verity-fec.c @@ -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 }; /*