Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 138341
b: refs/heads/master
c: fbc0ae2
h: refs/heads/master
i:
  138339: 7dc0a66
v: v3
  • Loading branch information
Alan Cox authored and Mauro Carvalho Chehab committed Mar 30, 2009
1 parent 9f805e7 commit 74de1ff
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c01f1a5a241604c35f93f10e06253ca70e88ee4e
refs/heads/master: fbc0ae205c5dfb1049a36f0a98cc9211a3a090bb
7 changes: 7 additions & 0 deletions trunk/drivers/media/video/cx88/cx88-cards.c
Original file line number Diff line number Diff line change
Expand Up @@ -3127,6 +3127,8 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr)
int i;

core = kzalloc(sizeof(*core), GFP_KERNEL);
if (core == NULL)
return NULL;

atomic_inc(&core->refcount);
core->pci_bus = pci->bus->number;
Expand Down Expand Up @@ -3157,6 +3159,11 @@ struct cx88_core *cx88_core_create(struct pci_dev *pci, int nr)
pci_resource_len(pci, 0));
core->bmmio = (u8 __iomem *)core->lmmio;

if (core->lmmio == NULL) {
kfree(core);
return NULL;
}

/* board config */
core->boardnr = UNSET;
if (card[core->nr] < ARRAY_SIZE(cx88_boards))
Expand Down

0 comments on commit 74de1ff

Please sign in to comment.