Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f7f02837 authored by Adrian Bunk's avatar Adrian Bunk Committed by Artem Bityutskiy
Browse files

UBI: mtd/ubi/vtbl.c: fix memory leak



This patch fixes a memory leak introduced by commit
4ccf8cff and spotted by the Coverity
checker.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
parent 8eee9f10
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -519,6 +519,7 @@ static int init_volumes(struct ubi_device *ubi, const struct ubi_scan_info *si,
			if (ubi->autoresize_vol_id != -1) {
			if (ubi->autoresize_vol_id != -1) {
				ubi_err("more then one auto-resize volume (%d "
				ubi_err("more then one auto-resize volume (%d "
					"and %d)", ubi->autoresize_vol_id, i);
					"and %d)", ubi->autoresize_vol_id, i);
				kfree(vol);
				return -EINVAL;
				return -EINVAL;
			}
			}