Memory leak on UBI volume truncating
Artem Bityutskiy
dedekind1 at gmail.com
Thu Jan 28 10:07:18 EST 2010
On Mon, 2010-01-18 at 09:36 +0100, Marek Skuczynski wrote:
> >> 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);
> >>
> >> --
>
> Thanks for you reply. It seems the fix solve the issue.
FYI, the fix is merged to the Linus's tree.
Thanks.
--
Best Regards,
Artem Bityutskiy (Артём Битюцкий)
More information about the linux-mtd
mailing list