Skip to content

Commit

Permalink
- Whoops, better have the structure created before trying to use it in
Browse files Browse the repository at this point in the history
  the patch I just submitted.

Noticed by:     phk
  • Loading branch information
YogoGit committed Apr 9, 1998
1 parent 2a42fd0 commit c839c3a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sys/pccard/pccard.c
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,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: pccard.c,v 1.56 1998/02/25 05:58:50 bde Exp $
* $Id: pccard.c,v 1.57 1998/04/08 15:00:02 nate Exp $
*/

#include "opt_devfs.h"
Expand Down Expand Up @@ -562,12 +562,12 @@ allocate_driver(struct slot *slt, struct dev_desc *desc)
slt->ctrl->mapirq(slt, slt->irq);
}
}
devi->running = 1;
MALLOC(devi, struct pccard_devinfo *, sizeof(*devi), M_DEVBUF, M_WAITOK);
bzero(devi, sizeof(*devi));
/*
* Create an entry for the device under this slot.
*/
devi->running = 1;
devi->drv = drv;
devi->slt = slt;
devi->isahd.id_irq = irq;
Expand Down

0 comments on commit c839c3a

Please sign in to comment.