summaryrefslogtreecommitdiffstats
path: root/arch/ia64/sn/kernel/xpc_main.c
diff options
context:
space:
mode:
authorDean Nelson2005-09-08 17:46:58 +0200
committerTony Luck2005-09-08 22:53:09 +0200
commit408865ce4829376120489ac8011b72125453dcff (patch)
tree090ab8cabba6f08ac2b2487cc9210bf39c6a99ad /arch/ia64/sn/kernel/xpc_main.c
parent[IA64] defconfig: turn off QLOGIC_FC (diff)
downloadkernel-qcow2-linux-408865ce4829376120489ac8011b72125453dcff.tar.gz
kernel-qcow2-linux-408865ce4829376120489ac8011b72125453dcff.tar.xz
kernel-qcow2-linux-408865ce4829376120489ac8011b72125453dcff.zip
[IA64] ensure XPC and XPNET are loaded on sn2 platforms only
These are SN2 only drivers. They should have platform checks to prevent them from doing evil stuff in GENERIC kernels. Signed-off-by: Martin Hicks <mort@sgi.com> Acked-by: Dean Nelson <dcn@sgi.com> Signed-off-by: Tony Luck <tony.luck@intel.com>
Diffstat (limited to 'arch/ia64/sn/kernel/xpc_main.c')
-rw-r--r--arch/ia64/sn/kernel/xpc_main.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/arch/ia64/sn/kernel/xpc_main.c b/arch/ia64/sn/kernel/xpc_main.c
index bb1d5cf30440..ed7c21586e98 100644
--- a/arch/ia64/sn/kernel/xpc_main.c
+++ b/arch/ia64/sn/kernel/xpc_main.c
@@ -885,6 +885,10 @@ xpc_init(void)
pid_t pid;
+ if (!ia64_platform_is("sn2")) {
+ return -ENODEV;
+ }
+
/*
* xpc_remote_copy_buffer is used as a temporary buffer for bte_copy'ng
* both a partition's reserved page and its XPC variables. Its size was