From: Artem Bityutskiy <[email protected]> When truncating an UBI volume, UBI should allocates a PEB-sized buffer but does not release it, which leads to memory leaks. This patch fixes the issue.
Reported-by: Marek Skuczynski <[email protected]> Signed-off-by: Artem Bityutskiy <[email protected]> Tested-by: Marek Skuczynski <[email protected]> Cc: [email protected] drivers/mtd/ubi/upd.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) --- http://git.linuxtv.org/v4l-dvb.git?a=commitdiff;h=ebddd63b74dcf1cb676d14328d5852f1fee19a8a diff --git a/drivers/mtd/ubi/upd.c b/drivers/mtd/ubi/upd.c index c1d7b88..425bf5a 100644 --- a/drivers/mtd/ubi/upd.c +++ b/drivers/mtd/ubi/upd.c @@ -155,6 +155,7 @@ int ubi_start_update(struct ubi_device *ubi, struct ubi_volume *vol, if (err) return err; vol->updating = 0; + return 0; } vol->upd_buf = vmalloc(ubi->leb_size); _______________________________________________ linuxtv-commits mailing list [email protected] http://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits
