[RFC/PATCH] mtd: ubi: Test return value of __wl_get_peb
Artem Bityutskiy
dedekind1 at gmail.com
Tue Apr 8 06:44:15 PDT 2014
On Tue, 2014-04-01 at 11:01 +0300, Tanya Brokhman wrote:
> In case of an error (if there are not free PEB's for example),
> __wl_get_peb will return a negative value. In order to prevent access
> violation we need to test the returned value prior to using it later on.
>
> Signed-off-by: Tatyana Brokhman <tlinder at codeaurora.org>
Pushed to linux-ubifs.git / master, thanks!
--
Best Regards,
Artem Bityutskiy
More information about the linux-mtd
mailing list