aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorInbar Karmy <[email protected]>2017-10-15 14:30:59 +0000
committerSaeed Mahameed <[email protected]>2017-11-10 06:39:21 +0000
commit2e50b2619538ea0224c037f6fa746023089e0654 (patch)
tree17bd1896764b82285889c2c0efca9df0dc24efad /drivers/iio/trigger/stm32-timer-trigger.c
parentnet/mlx5e: Fix napi poll with zero budget (diff)
downloadkernel-2e50b2619538ea0224c037f6fa746023089e0654.tar.gz
kernel-2e50b2619538ea0224c037f6fa746023089e0654.zip
net/mlx5e: Set page to null in case dma mapping fails
Currently, when dma mapping fails, put_page is called, but the page is not set to null. Later, in the page_reuse treatment in mlx5e_free_rx_descs(), mlx5e_page_release() is called for the second time, improperly doing dma_unmap (for a non-mapped address) and an extra put_page. Prevent this by nullifying the page pointer when dma_map fails. Fixes: accd58833237 ("net/mlx5e: Introduce RX Page-Reuse") Signed-off-by: Inbar Karmy <[email protected]> Reviewed-by: Tariq Toukan <[email protected]> Cc: [email protected] Signed-off-by: Saeed Mahameed <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions