fix "modules: make module_address_lookup() safe"
authorAndrew Morton <akpm@linux-foundation.org>
Fri, 8 Feb 2008 12:18:43 +0000 (04:18 -0800)
committerLinus Torvalds <torvalds@woody.linux-foundation.org>
Fri, 8 Feb 2008 17:22:24 +0000 (09:22 -0800)
commit92dfc9dc7ba63134f721b6e745dbdcfc13ea341b
treeaa959d2d5ba1819651888601e4d917b01ddcc88c
parent6d7623943c905efae327933bc5ee0b2f78e15f56
fix "modules: make module_address_lookup() safe"

Get the constness right, avoid nasty cast.

Cc: Ingo Molnar <mingo@elte.hu>
Cc: Kyle McMartin <kyle@mcmartin.ca>
Cc: Rusty Russell <rusty@rustcorp.com.au>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
include/linux/module.h
kernel/module.c