diff --git a/fs/namei.c b/fs/namei.c index 0baf64b116bdce83352c2f25d50d457b96b9ff92..9e102aca348032deaa9095c137b6d8e109638172 100644 --- a/fs/namei.c +++ b/fs/namei.c @@ -534,10 +534,8 @@ static void restore_nameidata(void) current->nameidata = old; if (old) old->total_link_count = now->total_link_count; - if (now->stack != now->internal) { + if (now->stack != now->internal) kfree(now->stack); - now->stack = now->internal; - } } static int __nd_alloc_stack(struct nameidata *nd)