diff options
author | Ioana Radulescu <ruxandra.radulescu@freescale.com> | 2013-07-23 12:17:14 (GMT) |
---|---|---|
committer | Fleming Andrew-AFLEMING <AFLEMING@freescale.com> | 2013-07-30 20:59:38 (GMT) |
commit | 679c0b00fa6310766b38deda6b62658e57b7e1e8 (patch) | |
tree | 64b1c27511cca772a6aaa06b65109ae4b1559841 /drivers/net/ethernet/freescale/dpa | |
parent | d90ed17cd894d4bc171f44567da4e480450cd0b5 (diff) | |
download | linux-fsl-qoriq-679c0b00fa6310766b38deda6b62658e57b7e1e8.tar.xz |
dpaa_eth: Fix freeing of bpool buffers
Make sure buffers get freed correctly even if they are part of
compound pages.
Signed-off-by: Ioana Radulescu <ruxandra.radulescu@freescale.com>
Change-Id: I36aaa1d13b526fa34c7c6ac7d3a1d787091b50f2
Reviewed-on: http://git.am.freescale.net:8181/3481
Tested-by: Review Code-CDREVIEW <CDREVIEW@freescale.com>
Reviewed-by: Hamciuc Bogdan-BHAMCIU1 <bogdan.hamciuc@freescale.com>
Reviewed-by: Bucur Madalin-Cristian-B32716 <madalin.bucur@freescale.com>
Reviewed-by: Sovaiala Cristian-Constantin-B39531 <Cristian.Sovaiala@freescale.com>
Reviewed-by: Fleming Andrew-AFLEMING <AFLEMING@freescale.com>
Diffstat (limited to 'drivers/net/ethernet/freescale/dpa')
-rw-r--r-- | drivers/net/ethernet/freescale/dpa/dpaa_eth.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h index 31f7052..d1304c1 100644 --- a/drivers/net/ethernet/freescale/dpa/dpaa_eth.h +++ b/drivers/net/ethernet/freescale/dpa/dpaa_eth.h @@ -713,7 +713,7 @@ static inline void _dpa_bp_free_buf(void *addr) #else static inline void _dpa_bp_free_buf(void *addr) { - free_page((unsigned long)addr); + put_page(virt_to_head_page(addr)); } #endif |