X-Git-Url: https://git.rohieb.name/openwrt.git/blobdiff_plain/32dec7075aae5cc6ef1e4394dc94fed1767b848e..1430d7ad5e67043f7d7069088d215b4024aaa6e4:/target/linux/generic/files/crypto/ocf/hifn/hifn7751.c?ds=sidebyside diff --git a/target/linux/generic/files/crypto/ocf/hifn/hifn7751.c b/target/linux/generic/files/crypto/ocf/hifn/hifn7751.c index 4803a83a5..b7df81907 100644 --- a/target/linux/generic/files/crypto/ocf/hifn/hifn7751.c +++ b/target/linux/generic/files/crypto/ocf/hifn/hifn7751.c @@ -241,7 +241,7 @@ pci_map_skb(struct hifn_softc *sc,struct hifn_operand *buf,struct sk_buff *skb) for (i = 0; i < skb_shinfo(skb)->nr_frags; ) { buf->segs[buf->nsegs].ds_len = skb_shinfo(skb)->frags[i].size; buf->segs[buf->nsegs].ds_addr = pci_map_single(sc->sc_pcidev, - page_address(skb_shinfo(skb)->frags[i].page) + + page_address(skb_frag_page(&skb_shinfo(skb)->frags[i])) + skb_shinfo(skb)->frags[i].page_offset, buf->segs[buf->nsegs].ds_len, PCI_DMA_BIDIRECTIONAL); buf->mapsize += buf->segs[buf->nsegs].ds_len;