Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 135324
b: refs/heads/master
c: 3456b22
h: refs/heads/master
v: v3
  • Loading branch information
David Woodhouse authored and David Woodhouse committed Jan 27, 2009
1 parent 32a56fe commit 40c8d04
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 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: af7806560c972b5b8c79e9704d7816813343cbc1
refs/heads/master: 3456b22111be920e15e6999b15d2f402a48e775d
4 changes: 2 additions & 2 deletions trunk/drivers/atm/solos-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static ssize_t solos_param_show(struct device *dev, struct device_attribute *att

buflen = strlen(attr->attr.name) + 10;

skb = alloc_skb(buflen, GFP_KERNEL);
skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL);
if (!skb) {
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_show()\n");
return -ENOMEM;
Expand Down Expand Up @@ -215,7 +215,7 @@ static ssize_t solos_param_store(struct device *dev, struct device_attribute *at

buflen = strlen(attr->attr.name) + 11 + count;

skb = alloc_skb(buflen, GFP_KERNEL);
skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL);
if (!skb) {
dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_store()\n");
return -ENOMEM;
Expand Down

0 comments on commit 40c8d04

Please sign in to comment.