bnx2fc: convert to SKB paged frag API.
authorIan Campbell <Ian.Campbell@citrix.com>
Wed, 24 Aug 2011 22:28:14 +0000 (22:28 +0000)
committerDavid S. Miller <davem@davemloft.net>
Fri, 26 Aug 2011 16:38:43 +0000 (12:38 -0400)
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Cc: Bhanu Prakash Gollapudi <bprakash@broadcom.com>
Cc: "James E.J. Bottomley" <JBottomley@parallels.com>
Cc: linux-scsi@vger.kernel.org
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/scsi/bnx2fc/bnx2fc_fcoe.c

index 7cb2cd48b17b253954c0c4801b22d7e980a5f644..2c780a78fcbd31f9ad0d9e53d0bf7b833698d0fe 100644 (file)
@@ -302,7 +302,7 @@ static int bnx2fc_xmit(struct fc_lport *lport, struct fc_frame *fp)
                        return -ENOMEM;
                }
                frag = &skb_shinfo(skb)->frags[skb_shinfo(skb)->nr_frags - 1];
-               cp = kmap_atomic(frag->page, KM_SKB_DATA_SOFTIRQ)
+               cp = kmap_atomic(skb_frag_page(frag), KM_SKB_DATA_SOFTIRQ)
                                + frag->page_offset;
        } else {
                cp = (struct fcoe_crc_eof *)skb_put(skb, tlen);