# Re: \[PATCH V2 net\] net: hns: Fix the device being used for dma mapping during TX

- From: David Miller \<davem@davemloft.net\>
- Date: 2017-02-10 18:43:16 
- List: netdev
- Page: https://ratatoskr.run/netdev/2017/02/4932145
- Thread: https://ratatoskr.run/netdev/2017/02/4930921/t.md

```text
From: Salil Mehta <redacted>
Date: Thu, 9 Feb 2017 11:46:15 +0000

> From: Kejian Yan <redacted>
> 
> This patch fixes the device being used to DMA map skb->data.
> Erroneous device assignment causes the crash when SMMU is enabled.
> This happens during TX since buffer gets DMA mapped with device
> correspondign to net_device and gets unmapped using the device
> related to DSAF.
> 
> Signed-off-by: Kejian Yan <redacted>
> Reviewed-by: Yisen Zhuang <redacted>
> Signed-off-by: Salil Mehta <redacted>

Applied, thank you.
```
