summaryrefslogtreecommitdiff
path: root/drivers/net/xen-netback/interface.c
diff options
context:
space:
mode:
authorVijayanand Jitta <vjitta@codeaurora.org>2019-01-27 22:36:16 +0530
committerGerrit - the friendly Code Review server <code-review@localhost>2019-01-31 20:03:08 -0800
commit87427d48bba6e080d538838e2361e725987c6207 (patch)
tree7d75ba3982a1c8694b27b7de5d45b61f66ca22cb /drivers/net/xen-netback/interface.c
parent9fbd68e8f4d949a8b9f62f931a8a8cff68df7432 (diff)
iommu: dma-mapping-fast: Add a check for count in fast_smmu_alloc
In fast_smmu_alloc size_t variable size is type casted to int variable count, this variable count can get truncated and can result in memory corruption during unmap, make count as size_t and also add a check for count as sg_alloc_table_from_pages accepts unsigned int value for count. Change-Id: I4780a554c5c062fd9dd229e5cc0ac804b1ba31d8 Signed-off-by: Vijayanand Jitta <vjitta@codeaurora.org>
Diffstat (limited to 'drivers/net/xen-netback/interface.c')
0 files changed, 0 insertions, 0 deletions