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.