Skip to content

Commit

Permalink
[IA64] ensure XPC and XPNET are loaded on sn2 platforms only
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dean Nelson authored and Tony Luck committed Sep 8, 2005
1 parent 087f902 commit 408865c
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
4 changes: 4 additions & 0 deletions arch/ia64/sn/kernel/xpc_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 4 additions & 0 deletions arch/ia64/sn/kernel/xpnet.c
Original file line number Diff line number Diff line change
Expand Up @@ -636,6 +636,10 @@ xpnet_init(void)
int result = -ENOMEM;


if (!ia64_platform_is("sn2")) {
return -ENODEV;
}

dev_info(xpnet, "registering network device %s\n", XPNET_DEVICE_NAME);

/*
Expand Down

0 comments on commit 408865c

Please sign in to comment.