commit | 7bc79e0434fcf4fa466eb16fdc910e7e1b9e0e10 | [log] [tgz] |
---|---|---|
author | Heiko Schocher <hs@denx.de> | Mon Jul 14 09:17:11 2014 +0200 |
committer | Anatolij Gustschin <agust@denx.de> | Thu Aug 14 15:00:57 2014 +0200 |
tree | f2217ab7129ba43cd58fad30af866a3673fb6942 | |
parent | 90491f2ecf2496bc55d2a5592837a782943c134c [diff] |
mtdparts: fix usecount bug add missing put_mtd_device, so mtd->usecount gets correct decremented in get_mtd_info(). Signed-off-by: Heiko Schocher <hs@denx.de> Cc: Scott Wood <scottwood@freescale.com> Cc: Tom Rini <trini@ti.com>
diff --git a/common/cmd_mtdparts.c b/common/cmd_mtdparts.c index 40b6333..3cb0571 100644 --- a/common/cmd_mtdparts.c +++ b/common/cmd_mtdparts.c
@@ -292,6 +292,7 @@ printf("Device %s not found!\n", mtd_dev); return 1; } + put_mtd_device(*mtd); return 0; }