aoe: reserve enough headroom on skbs
[pandora-kernel.git] / drivers / block / aoe / aoecmd.c
index 887f68f..db30542 100644 (file)
@@ -30,8 +30,9 @@ new_skb(ulong len)
 {
        struct sk_buff *skb;
 
 {
        struct sk_buff *skb;
 
-       skb = alloc_skb(len, GFP_ATOMIC);
+       skb = alloc_skb(len + MAX_HEADER, GFP_ATOMIC);
        if (skb) {
        if (skb) {
+               skb_reserve(skb, MAX_HEADER);
                skb_reset_mac_header(skb);
                skb_reset_network_header(skb);
                skb->protocol = __constant_htons(ETH_P_AOE);
                skb_reset_mac_header(skb);
                skb_reset_network_header(skb);
                skb->protocol = __constant_htons(ETH_P_AOE);