···12631263 for (i = 0; i < RX_RING_SIZE; i++) {12641264 struct sk_buff *skb;12651265 skb = dev_alloc_skb(PKT_BUF_SZ + sizeof(struct RxFD));12661266- /* XXX: do we really want to call this before the NULL check? --hch */12671267- rx_align(skb); /* Align IP on 16 byte boundary */12661266+ if (skb)12671267+ rx_align(skb); /* Align IP on 16 byte boundary */12681268 sp->rx_skbuff[i] = skb;12691269 if (skb == NULL)12701270 break; /* OK. Just initially short of Rx bufs. */···16541654 struct sk_buff *skb;16551655 /* Get a fresh skbuff to replace the consumed one. */16561656 skb = dev_alloc_skb(PKT_BUF_SZ + sizeof(struct RxFD));16571657- /* XXX: do we really want to call this before the NULL check? --hch */16581658- rx_align(skb); /* Align IP on 16 byte boundary */16571657+ if (skb)16581658+ rx_align(skb); /* Align IP on 16 byte boundary */16591659 sp->rx_skbuff[entry] = skb;16601660 if (skb == NULL) {16611661 sp->rx_ringp[entry] = NULL;