summaryrefslogtreecommitdiff
path: root/include/linux/pps_kernel.h
diff options
context:
space:
mode:
authorLihong Yang <lihong.yang@intel.com>2017-09-07 15:05:46 +0300
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2017-10-10 00:12:54 +0300
commit784548c40d6f43eff2297220ad7800dc04be03c6 (patch)
tree6eb971acfadf388124e9ad3addd1a0579f358497 /include/linux/pps_kernel.h
parentb48be9978e4b21b28b7349f57574dae21378ddd5 (diff)
downloadlinux-784548c40d6f43eff2297220ad7800dc04be03c6.tar.xz
i40e: use the safe hash table iterator when deleting mac filters
This patch replaces hash_for_each function with hash_for_each_safe when calling __i40e_del_filter. The hash_for_each_safe function is the right one to use when iterating over a hash table to safely remove a hash entry. Otherwise, incorrect values may be read from freed memory. Detected by CoverityScan, CID 1402048 Read from pointer after free Signed-off-by: Lihong Yang <lihong.yang@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'include/linux/pps_kernel.h')
0 files changed, 0 insertions, 0 deletions