+ kernel-kallsymsc-fix-double-return.patch added to -mm tree

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



The patch titled
     kernel/kallsyms.c: fix double return
has been added to the -mm tree.  Its filename is
     kernel-kallsymsc-fix-double-return.patch

Before you just go and hit "reply", please:
   a) Consider who else should be cc'ed
   b) Prefer to cc a suitable mailing list as well
   c) Ideally: find the original patch on the mailing list and do a
      reply-to-all to that, adding suitable additional cc's

*** Remember to use Documentation/SubmitChecklist when testing your code ***

See http://userweb.kernel.org/~akpm/added-to-mm.txt to find
out what to do about this

The current -mm tree may be found at http://userweb.kernel.org/~akpm/mmotm/

------------------------------------------------------
Subject: kernel/kallsyms.c: fix double return
From: WANG Cong <wangcong@xxxxxxxxx>

Commit 6dd06c9fbe025f542bce4cdb91790c0f91962722 introduced double returns
in the function kallsyms_lookup(), it's weird.  The second one should be
removed.

Signed-off-by: WANG Cong <wangcong@xxxxxxxxx>
Cc: Rusty Russell <rusty@xxxxxxxxxxxxxxx>
Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx>
---

 kernel/kallsyms.c |    1 -
 1 file changed, 1 deletion(-)

diff -puN kernel/kallsyms.c~kernel-kallsymsc-fix-double-return kernel/kallsyms.c
--- a/kernel/kallsyms.c~kernel-kallsymsc-fix-double-return
+++ a/kernel/kallsyms.c
@@ -260,7 +260,6 @@ const char *kallsyms_lookup(unsigned lon
 	/* 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)
_

Patches currently in -mm which might be from wangcong@xxxxxxxxx are

kernel-kallsymsc-fix-double-return.patch

--
To unsubscribe from this list: send the line "unsubscribe mm-commits" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Kernel Newbies FAQ]     [Kernel Archive]     [IETF Annouce]     [DCCP]     [Netdev]     [Networking]     [Security]     [Bugtraq]     [Photo]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Linux SCSI]

  Powered by Linux