Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 8934
b: refs/heads/master
c: c7fb0b3
h: refs/heads/master
v: v3
  • Loading branch information
Ivan Kokshaysky authored and Linus Torvalds committed Sep 14, 2005
1 parent 2a3ffd2 commit 7144f4f
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fd4ef85e0db9ed75c98e13953257a967ea55e03
refs/heads/master: c7fb0b35ada6e0e691e70af5591a2006fbec85b5
13 changes: 12 additions & 1 deletion trunk/drivers/pcmcia/yenta_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -1045,7 +1045,18 @@ static int __devinit yenta_probe (struct pci_dev *dev, const struct pci_device_i
{
struct yenta_socket *socket;
int ret;


/*
* If we failed to assign proper bus numbers for this cardbus
* controller during PCI probe, its subordinate pci_bus is NULL.
* Bail out if so.
*/
if (!dev->subordinate) {
printk(KERN_ERROR "Yenta: no bus associated with %s!\n",
pci_name(dev));
return -ENODEV;
}

socket = kmalloc(sizeof(struct yenta_socket), GFP_KERNEL);
if (!socket)
return -ENOMEM;
Expand Down

0 comments on commit 7144f4f

Please sign in to comment.