git://git.onelab.eu
/
linux-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fedora kernel-2.6.17-1.2142_FC4 patched with stable patch-2.6.17.4-vs2.0.2-rc26.diff
[linux-2.6.git]
/
arch
/
ia64
/
hp
/
sim
/
simeth.c
diff --git
a/arch/ia64/hp/sim/simeth.c
b/arch/ia64/hp/sim/simeth.c
index
ae84a10
..
0639ec0
100644
(file)
--- a/
arch/ia64/hp/sim/simeth.c
+++ b/
arch/ia64/hp/sim/simeth.c
@@
-191,7
+191,7
@@
simeth_probe1(void)
unsigned char mac_addr[ETH_ALEN];
struct simeth_local *local;
struct net_device *dev;
unsigned char mac_addr[ETH_ALEN];
struct simeth_local *local;
struct net_device *dev;
- int fd, i, err;
+ int fd, i, err
, rc
;
/*
* XXX Fix me
/*
* XXX Fix me
@@
-228,7
+228,9
@@
simeth_probe1(void)
return err;
}
return err;
}
- dev->irq = assign_irq_vector(AUTO_ASSIGN);
+ if ((rc = assign_irq_vector(AUTO_ASSIGN)) < 0)
+ panic("%s: out of interrupt vectors!\n", __FUNCTION__);
+ dev->irq = rc;
/*
* attach the interrupt in the simulator, this does enable interrupts
/*
* attach the interrupt in the simulator, this does enable interrupts