]> git.karo-electronics.de Git - linux-beck.git/commit
ubi: gluebi: Fix double refcounting
authorRichard Weinberger <richard@nod.at>
Mon, 4 Jul 2016 20:10:13 +0000 (22:10 +0200)
committerRichard Weinberger <richard@nod.at>
Fri, 29 Jul 2016 21:31:54 +0000 (23:31 +0200)
commit95b54e1e10eb32c465d1028dd119ee790afe4a01
treec7e4a5af521227e7194460502eccb308a435bc60
parentdccbc9197d2c3614f2fd6811874e1d982e4415f0
ubi: gluebi: Fix double refcounting

There is no need to call get/put on the module
reference in gluebi_get/put_device() callbacks.
Since mtd->owner is the gluebi module itself
mtdcore.c will take care of proper refcounting
in __get/put_mtd_device() before executing the
callbacks.

Signed-off-by: Richard Weinberger <richard@nod.at>
drivers/mtd/ubi/gluebi.c