Re: [PATCH 02/35] UBI: Fix stale pointers in ubi->lookuptbl

From: Artem Bityutskiy
Date: Wed Nov 05 2014 - 10:14:15 EST


On Wed, 2014-10-29 at 13:45 +0100, Richard Weinberger wrote:
> + ubi->lookuptbl[e2->pnum] = NULL;
> kmem_cache_free(ubi_wl_entry_slab, e2);

Since these 2 must always go together, they really deserve a separate
helper function.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/