diff options
author | Jonas Gorski <jogo@openwrt.org> | 2012-01-19 19:51:54 +0000 |
---|---|---|
committer | Jonas Gorski <jogo@openwrt.org> | 2012-01-19 19:51:54 +0000 |
commit | aa8f9171f2e779040d655db2cf96234b6e98610c (patch) | |
tree | 595553c3edea82a60c729b32416c7ec619258afd /target/linux/generic/files/crypto/ocf/safe | |
parent | 9fd38863652081fd4a31178fdb68e5e2a118eba8 (diff) | |
download | upstream-aa8f9171f2e779040d655db2cf96234b6e98610c.tar.gz upstream-aa8f9171f2e779040d655db2cf96234b6e98610c.tar.bz2 upstream-aa8f9171f2e779040d655db2cf96234b6e98610c.zip |
kernel: fix OCF for linux 3.2
Add skb_frag_page from 3.2 to OCF for 3.1 and earlier and use it.
SVN-Revision: 29818
Diffstat (limited to 'target/linux/generic/files/crypto/ocf/safe')
-rw-r--r-- | target/linux/generic/files/crypto/ocf/safe/safe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/generic/files/crypto/ocf/safe/safe.c b/target/linux/generic/files/crypto/ocf/safe/safe.c index 189b95f609..7d9b541177 100644 --- a/target/linux/generic/files/crypto/ocf/safe/safe.c +++ b/target/linux/generic/files/crypto/ocf/safe/safe.c @@ -208,7 +208,7 @@ pci_map_skb(struct safe_softc *sc,struct safe_operand *buf,struct sk_buff *skb) for (i = 0; i < skb_shinfo(skb)->nr_frags; i++) { pci_map_linear(sc, buf, - 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, skb_shinfo(skb)->frags[i].size); } |