Re: [PATCH V2 net] net: hns: Fix the device being used for dma mapping during TX
From: David Miller
Date: Fri Feb 10 2017 - 13:43:23 EST
From: Salil Mehta <salil.mehta@xxxxxxxxxx>
Date: Thu, 9 Feb 2017 11:46:15 +0000
> From: Kejian Yan <yankejian@xxxxxxxxxx>
>
> 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 <yankejian@xxxxxxxxxx>
> Reviewed-by: Yisen Zhuang <yisen.zhuang@xxxxxxxxxx>
> Signed-off-by: Salil Mehta <salil.mehta@xxxxxxxxxx>
Applied, thank you.