Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 299111
b: refs/heads/master
c: 17b7e1b
h: refs/heads/master
i:
  299109: 12304ca
  299107: 33cf44b
  299103: 60e18ed
v: v3
  • Loading branch information
Jesper Juhl authored and Greg Kroah-Hartman committed Apr 12, 2012
1 parent 7fd74bc commit 74b0baf
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 62d2feb9803f18c4e3c8a1a2c7e30a54df8a1d72
refs/heads/master: 17b7e1ba1e2ecc9a09f5e154e555accd2a2eaedf
3 changes: 2 additions & 1 deletion trunk/drivers/staging/vt6656/ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -565,7 +565,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
result = -ENOMEM;
break;
}
pNodeList = (PSNodeList)kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), (int)GFP_ATOMIC);
pNodeList = kmalloc(sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)), (int)GFP_ATOMIC);
if (pNodeList == NULL) {
result = -ENOMEM;
break;
Expand Down Expand Up @@ -601,6 +601,7 @@ int private_ioctl(PSDevice pDevice, struct ifreq *rq)
}
}
if (copy_to_user(pReq->data, pNodeList, sizeof(SNodeList) + (sNodeList.uItem * sizeof(SNodeItem)))) {
kfree(pNodeList);
result = -EFAULT;
break;
}
Expand Down

0 comments on commit 74b0baf

Please sign in to comment.