Rev 1239 | Rev 1403 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1239 | Rev 1246 | ||
---|---|---|---|
Line 342... | Line 342... | ||
342 | }; |
342 | }; |
343 | 343 | ||
Line 344... | Line 344... | ||
344 | hdr = PciRead8(bus, devfn, PCI_HEADER_TYPE); |
344 | hdr = PciRead8(bus, devfn, PCI_HEADER_TYPE); |
Line 345... | Line 345... | ||
345 | 345 | ||
Line 346... | Line 346... | ||
346 | dev = (dev_t*)malloc(sizeof(dev_t)); |
346 | dev = (dev_t*)kzalloc(sizeof(dev_t), 0); |
Line 347... | Line 347... | ||
347 | 347 | ||
348 | INIT_LIST_HEAD(&dev->link); |
348 | INIT_LIST_HEAD(&dev->link); |