]> git.karo-electronics.de Git - linux-beck.git/commit
UBI: fix memory leak on error path
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Wed, 4 Jun 2008 14:58:37 +0000 (17:58 +0300)
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Thu, 24 Jul 2008 10:32:55 +0000 (13:32 +0300)
commit472018f73e7308a7f29b753ee8c742b6f45f103f
tree327c1e008a30b79fc527daf26802b795f3a99b32
parent505d1caa79cd61a70615e9a7eae2eab85e797a83
UBI: fix memory leak on error path

Normally UBI volumes are freed in the release function of
the struct device object. However, on error path they may
have to be freed before the struct device objects have been
initialized.

Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
drivers/mtd/ubi/build.c