Florin Malita dcec4c3bdc UBI: fix leak in ubi_scan_erase_peb
Coverity (1769) found the following problem: if the erase counter
overflow check triggers, ec_hdr is leaked.

Moving the allocation after the overflow check should take care of it.

Signed-off-by: Florin Malita <fmalita@gmail.com>
Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
2007-10-14 13:10:20 +03:00
..
2007-07-18 16:58:53 +03:00
2007-07-18 16:59:17 +03:00
2007-07-18 16:55:55 +03:00
2007-07-18 16:55:55 +03:00
2007-07-18 16:52:51 +03:00
2007-07-18 16:59:01 +03:00
2007-07-18 16:58:53 +03:00
2007-04-27 14:23:33 +03:00
2007-04-27 14:23:33 +03:00
2007-04-27 14:23:33 +03:00
2007-07-18 16:53:08 +03:00
2007-10-14 13:10:20 +03:00
2007-07-18 16:52:32 +03:00
2007-07-18 16:53:08 +03:00
2007-07-18 16:53:08 +03:00
2007-07-18 16:58:12 +03:00
2007-07-18 16:58:12 +03:00