ath5k is using the (csz - 1) twice as ath_rxbuf_alloc() already allocates
and moves skb->data accordingly. Remove the extra (csz -1).
Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
* fake physical layer header at the start.
*/
skb = ath_rxbuf_alloc(common,
- common->rx_bufsize + common->cachelsz - 1,
+ common->rx_bufsize,
GFP_ATOMIC);
if (!skb) {
ATH5K_ERR(sc, "can't alloc skbuff of size %u\n",
- common->rx_bufsize + common->cachelsz - 1);
+ common->rx_bufsize);
return NULL;
}