diff options
author | Alex Elder <[email protected]> | 2022-10-27 07:26:29 -0500 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-10-28 22:06:47 -0700 |
commit | 2b87d721999a7591af7a63c1908084b1d59ba4e5 (patch) | |
tree | d1cfac953dbcd68fd61faca50285be2274d509fa /net/unix/sysctl_net_unix.c | |
parent | bd5524930ba7c9ed914952da48a77f803f0b5011 (diff) |
net: ipa: more completely check endpoint validity
Ensure all defined TX endpoints are in the range [0, CONS_PIPES) and
defined RX endpoints are within [PROD_LOWEST, PROD_LOWEST+PROD_PIPES).
Modify the way local variables are used to make the checks easier
to understand. Check for each endpoint being in valid range in the
loop, and drop the logical-AND check of initialized against
unavailable IDs.
Signed-off-by: Alex Elder <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions