ANDROID: dm-user: Drop additional reference
kref_init already takes one reference during initialization. Additional reference will cause memory leak when dm-user target is destroyed. Bug: 188362111 Test: OTA - verify ref count dropping to 0 Signed-off-by: Akilesh Kailash <akailash@google.com> Change-Id: I0b25135371daefdaf2841e9ff5cdfd6aaa389f3b
This commit is contained in:
parent
560fdb20e4
commit
394f893451
1 changed files with 0 additions and 1 deletions
|
|
@ -916,7 +916,6 @@ static int user_ctr(struct dm_target *ti, unsigned int argc, char **argv)
|
|||
* channels have been closed.
|
||||
*/
|
||||
kref_init(&t->references);
|
||||
kref_get(&t->references);
|
||||
|
||||
mutex_init(&t->lock);
|
||||
init_waitqueue_head(&t->wq);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue