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

Commit 7968b3d9 authored by WANG Cong's avatar WANG Cong Committed by Linus Torvalds
Browse files

kernel/kallsyms.c: fix double return



Commit 6dd06c9f ("module: make
module_address_lookup safe") introduced double returns in the function
kallsyms_lookup(), it's weird.  The second one should be removed.

Signed-off-by: default avatarWANG Cong <wangcong@zeuux.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 f337b9c5
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -260,7 +260,6 @@ const char *kallsyms_lookup(unsigned long addr,
	/* see if it's in a module */
	return module_address_lookup(addr, symbolsize, offset, modname,
				     namebuf);
	return NULL;
}

int lookup_symbol_name(unsigned long addr, char *symname)