diff options
author | Brad Smith <brad@cvs.openbsd.org> | 2006-06-17 18:33:28 +0000 |
---|---|---|
committer | Brad Smith <brad@cvs.openbsd.org> | 2006-06-17 18:33:28 +0000 |
commit | 5b6244458dbd534d2852e8cc599edb0c0d934d71 (patch) | |
tree | 341b8538c4ccae7e58df3c08b7bea9c1cabf70ae /sys/dev/pci/azalia.c | |
parent | e6cb38fd52e25b2129523e96d1d0a2bb0e5f9be0 (diff) |
check return values of azalia_init_corb() and azalia_init_rirb().
From kent NetBSD
Diffstat (limited to 'sys/dev/pci/azalia.c')
-rw-r--r-- | sys/dev/pci/azalia.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/sys/dev/pci/azalia.c b/sys/dev/pci/azalia.c index 19a4df5300e..3e4a70f2668 100644 --- a/sys/dev/pci/azalia.c +++ b/sys/dev/pci/azalia.c @@ -1,4 +1,4 @@ -/* $OpenBSD: azalia.c,v 1.14 2006/06/16 08:03:42 brad Exp $ */ +/* $OpenBSD: azalia.c,v 1.15 2006/06/17 18:33:27 brad Exp $ */ /* $NetBSD: azalia.c,v 1.20 2006/05/07 08:31:44 kent Exp $ */ /*- @@ -562,9 +562,11 @@ azalia_attach_intr(struct device *self) AZ_WRITE_4(az, DPUBASE, 0); /* 4.4.1 Command Outbound Ring Buffer */ - azalia_init_corb(az); + if (azalia_init_corb(az)) + goto err_exit; /* 4.4.2 Response Inbound Ring Buffer */ - azalia_init_rirb(az); + if (azalia_init_rirb(az)) + goto err_exit; AZ_WRITE_4(az, INTCTL, AZ_READ_4(az, INTCTL) | HDA_INTCTL_CIE | HDA_INTCTL_GIE); |