diff options
author | dfr <dfr@FreeBSD.org> | 1999-04-19 08:55:11 +0000 |
---|---|---|
committer | dfr <dfr@FreeBSD.org> | 1999-04-19 08:55:11 +0000 |
commit | 383d09639e452d41993288933f38822461a76c9f (patch) | |
tree | f9611447c296fd11d93d50e65f17d85c853cd8fc /sys/alpha | |
parent | e374d062a8229df3c21fc91cfe332ffb6207c8aa (diff) | |
download | FreeBSD-src-383d09639e452d41993288933f38822461a76c9f.zip FreeBSD-src-383d09639e452d41993288933f38822461a76c9f.tar.gz |
Add seatbelts.
Diffstat (limited to 'sys/alpha')
-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 ffb726a..f6cde88 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; } } |