diff options
author | 2015-02-24 23:02:02 -0800 | |
---|---|---|
committer | 2015-02-25 17:57:48 -0500 | |
commit | d79d21073626cf022943e5c4c10a97cdf7cb8465 (patch) | |
tree | 529fa340e3b007cce36bb7665f1eef4807bdb5b4 /net/unix/af_unix.c | |
parent | Merge branch 'sf2_hwbridge' (diff) | |
download | wireguard-linux-d79d21073626cf022943e5c4c10a97cdf7cb8465.tar.xz wireguard-linux-d79d21073626cf022943e5c4c10a97cdf7cb8465.zip |
net: dsa: Introduce dsa_is_port_initialized
To avoid race conditions when using the ds->ports[] array,
we need to check if the accessed port has been initialized.
Introduce and use helper function dsa_is_port_initialized
for that purpose and use it where needed.
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions