diff options
author | Gleb Smirnoff <glebius@FreeBSD.org> | 2021-12-04 17:49:36 +0000 |
---|---|---|
committer | Gleb Smirnoff <glebius@FreeBSD.org> | 2021-12-06 17:32:31 +0000 |
commit | d74b7baeb0d419fce46994075b6ccf944a0fae9a (patch) | |
tree | 8e0150c7d686f379f6ef2661e1b13bf24b7dda5f /contrib/llvm-project/clang | |
parent | 7b40b00fad1606eaa98a7b116ba8651221d55f62 (diff) | |
download | src-d74b7baeb0d419fce46994075b6ccf944a0fae9a.tar.gz src-d74b7baeb0d419fce46994075b6ccf944a0fae9a.zip |
ifnet_byindex() actually requires network epoch
Sweep over potentially unsafe calls to ifnet_byindex() and wrap them
in epoch. Most of the code touched remains unsafe, as the returned
pointer is being used after epoch exit. Mark that with a comment.
Validate the index argument inside the function, reducing argument
validation requirement from the callers and making V_if_index
private to if.c.
Reviewed by: melifaro
Differential revision: https://reviews.freebsd.org/D33263
Diffstat (limited to 'contrib/llvm-project/clang')
0 files changed, 0 insertions, 0 deletions