1. 26 6月, 2014 2 次提交
  2. 16 6月, 2014 1 次提交
    • C
      mwifiex: fix tx_info/rx_info overlap with PCIe dma_mapping · bca463e8
      Chin-Ran Lo 提交于
      On PCIe Tx data path, network interface specific tx_info
      parameters such as bss_num and bss_type are saved at
      "skb->cb + sizeof(dma_addr_t)" (returned by MWIFIEX_SKB_TXCB).
      Later mwifiex_map_pci_memory() called from
      mwifiex_pcie_send_data() will memcpy
      sizeof(struct mwifiex_dma_mapping) bytes to save PCIe DMA
      address and length information at beginning of skb->cb.
      This accidently overwrites bss_num and bss_type saved in skb->cb
      previously because bss_num/bss_type and mwifiex_dma_mapping data
      overlap.
      Similarly, on PCIe Rx data path, rx_info parameters overlaps
      with PCIe DMA address and length information too.
      
      Fix it by defining mwifiex_cb structure and having
      MWIFIEX_SKB_TXCB and MWIFIEX_SKB_RXCB return the correct address
      of tx_info/rx_info using the structure members.
      
      Also add a BUILD_BUG_ON to maks sure that mwifiex_cb structure
      doesn't exceed the size of skb->cb.
      Reviewed-by: NAaron Durbin <adurbin@chromium.org>
      Signed-off-by: NChin-Ran Lo <crlo@marvell.com>
      Signed-off-by: NBing Zhao <bzhao@marvell.com>
      Signed-off-by: NJohn W. Linville <linville@tuxdriver.com>
      bca463e8
  3. 17 5月, 2014 1 次提交
  4. 25 4月, 2014 1 次提交
  5. 23 4月, 2014 2 次提交
  6. 28 3月, 2014 2 次提交
  7. 20 3月, 2014 1 次提交
  8. 01 3月, 2014 2 次提交
  9. 21 2月, 2014 2 次提交
  10. 13 2月, 2014 2 次提交
  11. 16 11月, 2013 1 次提交
  12. 27 9月, 2013 1 次提交
  13. 24 7月, 2013 3 次提交
  14. 23 7月, 2013 1 次提交
  15. 26 4月, 2013 4 次提交
  16. 23 4月, 2013 1 次提交
  17. 28 3月, 2013 3 次提交
  18. 26 3月, 2013 1 次提交
  19. 07 3月, 2013 3 次提交
  20. 28 2月, 2013 1 次提交
  21. 23 2月, 2013 2 次提交
  22. 19 2月, 2013 1 次提交
  23. 15 2月, 2013 1 次提交
  24. 12 2月, 2013 1 次提交