Re: [PATCH][next] ubifs: fix uninitialized error variable err

From: Richard Weinberger
Date: Mon Jul 17 2017 - 12:03:47 EST


Colin,

Am 17.07.2017 um 18:00 schrieb Colin King:
> From: Colin Ian King <colin.king@xxxxxxxxxxxxx>
>
> Variable err is not initialized and so the check to see if it is
> non-zero is basically checking a random garbage value. Fix this
> by initializing err to zero.
>
> Detected by CoverityScan, CID#1451370 ("Uninitialized variable")
>
> Fixes: 781f675e2d7e ("ubifs: Fix unlink code wrt. double hash lookups")
> Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx>

Thanks, geert already pointed out that I've merged a bad patch.
I managed to merge the patch without the issues fixed that Hyunchul Lee
identified. ;-(

Thanks,
//richard