diff options
Diffstat (limited to 'net/decnet/dn_neigh.c')
-rw-r--r-- | net/decnet/dn_neigh.c | 24 |
1 files changed, 12 insertions, 12 deletions
diff --git a/net/decnet/dn_neigh.c b/net/decnet/dn_neigh.c index 7322bb36e825..11d692dfb4f3 100644 --- a/net/decnet/dn_neigh.c +++ b/net/decnet/dn_neigh.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * operating system. DECnet is implemented using the BSD Socket | 3 | * operating system. DECnet is implemented using the BSD Socket |
4 | * interface as the means of communication with the user level. | 4 | * interface as the means of communication with the user level. |
5 | * | 5 | * |
6 | * DECnet Neighbour Functions (Adjacency Database and | 6 | * DECnet Neighbour Functions (Adjacency Database and |
7 | * On-Ethernet Cache) | 7 | * On-Ethernet Cache) |
8 | * | 8 | * |
9 | * Author: Steve Whitehouse <SteveW@ACM.org> | 9 | * Author: Steve Whitehouse <SteveW@ACM.org> |
@@ -277,19 +277,19 @@ static int dn_short_output(struct sk_buff *skb) | |||
277 | struct dn_skb_cb *cb = DN_SKB_CB(skb); | 277 | struct dn_skb_cb *cb = DN_SKB_CB(skb); |
278 | 278 | ||
279 | 279 | ||
280 | if (skb_headroom(skb) < headroom) { | 280 | if (skb_headroom(skb) < headroom) { |
281 | struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); | 281 | struct sk_buff *skb2 = skb_realloc_headroom(skb, headroom); |
282 | if (skb2 == NULL) { | 282 | if (skb2 == NULL) { |
283 | if (net_ratelimit()) | 283 | if (net_ratelimit()) |
284 | printk(KERN_CRIT "dn_short_output: no memory\n"); | 284 | printk(KERN_CRIT "dn_short_output: no memory\n"); |
285 | kfree_skb(skb); | 285 | kfree_skb(skb); |
286 | return -ENOBUFS; | 286 | return -ENOBUFS; |
287 | } | 287 | } |
288 | kfree_skb(skb); | 288 | kfree_skb(skb); |
289 | skb = skb2; | 289 | skb = skb2; |
290 | if (net_ratelimit()) | 290 | if (net_ratelimit()) |
291 | printk(KERN_INFO "dn_short_output: Increasing headroom\n"); | 291 | printk(KERN_INFO "dn_short_output: Increasing headroom\n"); |
292 | } | 292 | } |
293 | 293 | ||
294 | data = skb_push(skb, sizeof(struct dn_short_packet) + 2); | 294 | data = skb_push(skb, sizeof(struct dn_short_packet) + 2); |
295 | *((__le16 *)data) = dn_htons(skb->len - 2); | 295 | *((__le16 *)data) = dn_htons(skb->len - 2); |