Files
i2som-imx-linux/kernel
Rusty Russell 0de578d014 module: fix out-by-one error in kallsyms
commit 59ef28b1f1 upstream.

Masaki found and patched a kallsyms issue: the last symbol in a
module's symtab wasn't transferred.  This is because we manually copy
the zero'th entry (which is always empty) then copy the rest in a loop
starting at 1, though from src[0].  His fix was minimal, I prefer to
rewrite the loops in more standard form.

There are two loops: one to get the size, and one to copy.  Make these
identical: always count entry 0 and any defined symbol in an allocated
non-init section.

This bug exists since the following commit was introduced.
   module: reduce symbol table for loaded modules (v2)
   commit: 4a4962263f

LKML: http://lkml.org/lkml/2012/10/24/27
Reported-by: Masaki Kimura <masaki.kimura.kz@hitachi.com>
Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2012-11-26 11:37:41 -08:00
..
2012-08-15 08:10:29 -07:00
2012-07-16 09:04:42 -07:00
2011-09-23 12:05:29 +05:30
2012-03-28 18:30:03 +01:00
2012-03-29 19:52:46 +08:00
2012-03-23 16:58:41 -07:00
2012-07-16 09:04:42 -07:00
2012-03-28 18:30:03 +01:00
2011-10-31 17:30:44 -07:00
2012-10-28 10:14:13 -07:00
2011-09-19 17:04:37 -07:00
2012-03-15 18:17:55 -07:00