Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 43054412 authored by Adrian Bunk's avatar Adrian Bunk Committed by Linus Torvalds
Browse files

lguest_user.c: fix memory leak



This patch fixes a memory leak spotted by the Coverity checker.

Signed-off-by: default avatarAdrian Bunk <bunk@kernel.org>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 62ec5652
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -184,7 +184,7 @@ static int initialize(struct file *file, const unsigned long __user *input)
free_regs:
	free_page(lg->regs_page);
release_guest:
	memset(lg, 0, sizeof(*lg));
	kfree(lg);
unlock:
	mutex_unlock(&lguest_lock);
	return err;