> /* Get length if the packet... */ > rxlen = readw(db->rxbuf); > reads = function(rxlen); > if ((skb = dev_alloc_skb(rxlen)) != NULL) { > skb->dev = dev; > skb_reserve(skb, 2); > rdptr = (u8 *) skb_put(skb, rxlen ); > for( count = 0 ; count < reads ; count ++ ){ Shouldn't it be count += 2 ?? > u16 tmpbyte = readw( (void* __iomem)db->rxbuf ); > rdptr[count] = tmpbyte & 0x00FF; > rdptr[count+1] = tmpbyte >> 8; > } > } -- To unsubscribe from this list: send an email with "unsubscribe kernelnewbies" to ecartis@xxxxxxxxxxxx Please read the FAQ at http://kernelnewbies.org/FAQ