Skip to content

Commit

Permalink
UBI: mtd/ubi/vtbl.c: fix memory leak
Browse files Browse the repository at this point in the history
This patch fixes a memory leak introduced by commit
4ccf8cf and spotted by the Coverity
checker.

Signed-off-by: Adrian Bunk <bunk@kernel.org>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
  • Loading branch information
Adrian Bunk authored and Artem Bityutskiy committed Mar 4, 2008
1 parent 8eee9f1 commit f7f0283
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/mtd/ubi/vtbl.c
Original file line number Diff line number Diff line change
Expand Up @@ -519,6 +519,7 @@ static int init_volumes(struct ubi_device *ubi, const struct ubi_scan_info *si,
if (ubi->autoresize_vol_id != -1) {
ubi_err("more then one auto-resize volume (%d "
"and %d)", ubi->autoresize_vol_id, i);
kfree(vol);
return -EINVAL;
}

Expand Down

0 comments on commit f7f0283

Please sign in to comment.