aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/util/scripting-engines/trace-event-python.c
diff options
context:
space:
mode:
authorJia-Ju Bai <[email protected]>2020-08-02 17:16:11 +0800
committerDavid S. Miller <[email protected]>2020-08-03 15:50:48 -0700
commita45a9e8a768c32103ffec67f9b173968a6154a11 (patch)
tree2a7ce1800b8c274c0426c5717b99756825054518 /tools/perf/util/scripting-engines/trace-event-python.c
parent6d78e473e018e15065d3004ee73ac77acf82baa2 (diff)
atm: eni: avoid accessing the data mapped to streaming DMA
In do_tx(), skb->data is mapped to streaming DMA on line 1111: paddr = dma_map_single(...,skb->data,DMA_TO_DEVICE); Then skb->data is accessed on line 1153: (skb->data[3] & 0xf) This access may cause data inconsistency between CPU cache and hardware. To fix this problem, skb->data[3] is assigned to a local variable before DMA mapping, and then the driver accesses this local variable instead of skb->data[3]. Signed-off-by: Jia-Ju Bai <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions