diff options
| author | Doug Rabson <dfr@FreeBSD.org> | 1999-04-19 08:55:11 +0000 |
|---|---|---|
| committer | Doug Rabson <dfr@FreeBSD.org> | 1999-04-19 08:55:11 +0000 |
| commit | a7aeb17acc968c045f6df2d3e3daa4c4274b90f1 (patch) | |
| tree | 481180fab07ae156ac9b656547eaa100f335d4af /sys | |
| parent | 343f195b0c8e11e307f52f6b57baf30a761c5bdf (diff) | |
Notes
Diffstat (limited to 'sys')
| -rw-r--r-- | sys/alpha/pci/pcibus.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/alpha/pci/pcibus.c b/sys/alpha/pci/pcibus.c index ffb726a3b417a..f6cde88b79e3c 100644 --- a/sys/alpha/pci/pcibus.c +++ b/sys/alpha/pci/pcibus.c @@ -23,7 +23,7 @@ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * - * $Id: pcibus.c,v 1.8 1998/12/27 18:03:29 dfr Exp $ + * $Id: pcibus.c,v 1.9 1999/04/16 21:21:39 peter Exp $ * */ @@ -183,7 +183,10 @@ alpha_platform_setup_ide_intr(int chan, driver_intr_t *fn, void *arg) void *junk; struct resource *res; res = isa_alloc_intr(0, 0, irqs[chan]); - return isa_setup_intr(0, 0, res, fn, arg, &junk); + if (res) + return isa_setup_intr(0, 0, res, fn, arg, &junk); + else + return ENOMEM; } } |
