https://github.com/torvalds/linux
Revision 129182e5626972ac0df85d43a36dd46ad61c64e1 authored by Andrew Morton on 08 January 2010, 22:42:39 UTC, committed by Linus Torvalds on 11 January 2010, 17:34:04 UTC
__pcpu_ptr_to_addr() can be overridden by the architecture and might not
behave well if passed a NULL pointer.  So avoid calling it until we have
verified that its arg is not NULL.

Cc: Rusty Russell <rusty@rustcorp.com.au>
Cc: Kamalesh Babulal <kamalesh@linux.vnet.ibm.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent 8767ba2
History
Tip revision: 129182e5626972ac0df85d43a36dd46ad61c64e1 authored by Andrew Morton on 08 January 2010, 22:42:39 UTC
percpu: avoid calling __pcpu_ptr_to_addr(NULL)
Tip revision: 129182e
File Mode Size
Documentation
arch
block
crypto
drivers
firmware
fs
include
init
ipc
kernel
lib
mm
net
samples
scripts
security
sound
tools
usr
virt
.gitignore -rw-r--r-- 835 bytes
.mailmap -rw-r--r-- 3.9 KB
COPYING -rw-r--r-- 18.3 KB
CREDITS -rw-r--r-- 91.8 KB
Kbuild -rw-r--r-- 2.4 KB
MAINTAINERS -rw-r--r-- 160.6 KB
Makefile -rw-r--r-- 52.0 KB
README -rw-r--r-- 17.0 KB
REPORTING-BUGS -rw-r--r-- 3.3 KB

README

back to top