Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 3821
b: refs/heads/master
c: b6d00f0
h: refs/heads/master
i:
  3819: 4e7c666
v: v3
  • Loading branch information
Dominik Brodowski authored and Linus Torvalds committed Jun 28, 2005
1 parent ffbd889 commit 7c1ab83
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 3248ff43f86493368b321376d447d84fa9a2737d
refs/heads/master: b6d00f0de9e932e2884b3b7af8e43c0a61a271ee
11 changes: 11 additions & 0 deletions trunk/drivers/pcmcia/rsrc_nonstatic.c
Original file line number Diff line number Diff line change
Expand Up @@ -779,6 +779,17 @@ static int nonstatic_autoadd_resources(struct pcmcia_socket *s)
if (!s->cb_dev || !s->cb_dev->bus)
return -ENODEV;

#if defined(CONFIG_X86) || defined(CONFIG_X86_64)
/* If this is the root bus, the risk of hitting
* some strange system devices which aren't protected
* by either ACPI resource tables or properly requested
* resources is too big. Therefore, don't do auto-adding
* of resources at the moment.
*/
if (s->cb_dev->bus->number == 0)
return -EINVAL;
#endif

for (i=0; i < PCI_BUS_NUM_RESOURCES; i++) {
res = s->cb_dev->bus->resource[i];
if (!res)
Expand Down

0 comments on commit 7c1ab83

Please sign in to comment.