diff options
Diffstat (limited to 'drivers/atm')
-rw-r--r-- | drivers/atm/solos-pci.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/atm/solos-pci.c b/drivers/atm/solos-pci.c index 297869965fc4..2dca5ffc8063 100644 --- a/drivers/atm/solos-pci.c +++ b/drivers/atm/solos-pci.c | |||
@@ -159,7 +159,7 @@ static ssize_t solos_param_show(struct device *dev, struct device_attribute *att | |||
159 | 159 | ||
160 | buflen = strlen(attr->attr.name) + 10; | 160 | buflen = strlen(attr->attr.name) + 10; |
161 | 161 | ||
162 | skb = alloc_skb(buflen, GFP_KERNEL); | 162 | skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); |
163 | if (!skb) { | 163 | if (!skb) { |
164 | dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_show()\n"); | 164 | dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_show()\n"); |
165 | return -ENOMEM; | 165 | return -ENOMEM; |
@@ -215,7 +215,7 @@ static ssize_t solos_param_store(struct device *dev, struct device_attribute *at | |||
215 | 215 | ||
216 | buflen = strlen(attr->attr.name) + 11 + count; | 216 | buflen = strlen(attr->attr.name) + 11 + count; |
217 | 217 | ||
218 | skb = alloc_skb(buflen, GFP_KERNEL); | 218 | skb = alloc_skb(sizeof(*header) + buflen, GFP_KERNEL); |
219 | if (!skb) { | 219 | if (!skb) { |
220 | dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_store()\n"); | 220 | dev_warn(&card->dev->dev, "Failed to allocate sk_buff in solos_param_store()\n"); |
221 | return -ENOMEM; | 221 | return -ENOMEM; |