summaryrefslogtreecommitdiffstats
path: root/include/linux/ipv6.h
diff options
context:
space:
mode:
authorAlexey Khoroshilov2016-10-14 23:01:20 +0200
committerDavid S. Miller2016-10-15 23:47:32 +0200
commitfb5c6cfaec126d9a96b9dd471d4711bf4c737a6f (patch)
tree05dcacadd11d40b436d4d702afc7cadb042671cd /include/linux/ipv6.h
parentstmmac: fix an error code in stmmac_ptp_register() (diff)
downloadkernel-qcow2-linux-fb5c6cfaec126d9a96b9dd471d4711bf4c737a6f.tar.gz
kernel-qcow2-linux-fb5c6cfaec126d9a96b9dd471d4711bf4c737a6f.tar.xz
kernel-qcow2-linux-fb5c6cfaec126d9a96b9dd471d4711bf4c737a6f.zip
vmxnet3: avoid assumption about invalid dma_pa in vmxnet3_set_mc()
vmxnet3_set_mc() checks new_table_pa returned by dma_map_single() with dma_mapping_error(), but even there it assumes zero is invalid pa (it assumes dma_mapping_error(...,0) returns true if new_table is NULL). The patch adds an explicit variable to track status of new_table_pa. Found by Linux Driver Verification project (linuxtesting.org). v2: use "bool" and "true"/"false" for boolean variables. Signed-off-by: Alexey Khoroshilov <khoroshilov@ispras.ru> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'include/linux/ipv6.h')
0 files changed, 0 insertions, 0 deletions