Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 200082
b: refs/heads/master
c: 2a6fae3
h: refs/heads/master
v: v3
  • Loading branch information
Alexander Beregalov authored and Mauro Carvalho Chehab committed May 18, 2010
1 parent 0f22d6d commit 748b916
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 71753e0141a220ecbf9c71a66e0a8acce9705fb5
refs/heads/master: 2a6fae326713ec84f307c045f6b497d4afaeb1d4
4 changes: 3 additions & 1 deletion trunk/drivers/edac/i7core_edac.c
Original file line number Diff line number Diff line change
Expand Up @@ -1249,8 +1249,10 @@ int i7core_get_onedevice(struct pci_dev **prev, int devno,
return -ENOMEM;
i7core_dev->pdev = kzalloc(sizeof(*i7core_dev->pdev) * n_devs,
GFP_KERNEL);
if (!i7core_dev->pdev)
if (!i7core_dev->pdev) {
kfree(i7core_dev);
return -ENOMEM;
}
i7core_dev->socket = socket;
i7core_dev->n_devs = n_devs;
list_add_tail(&i7core_dev->list, &i7core_edac_list);
Expand Down

0 comments on commit 748b916

Please sign in to comment.