Searched hist:d79d21073626cf022943e5c4c10a97cdf7cb8465 (Results 1 – 2 of 2) sorted by relevance
/linux/net/dsa/ |
H A D | dsa.c | diff d79d21073626cf022943e5c4c10a97cdf7cb8465 Wed Feb 25 08:02:02 CET 2015 Guenter Roeck <linux@roeck-us.net> 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>
|
/linux/include/net/ |
H A D | dsa.h | diff d79d21073626cf022943e5c4c10a97cdf7cb8465 Wed Feb 25 08:02:02 CET 2015 Guenter Roeck <linux@roeck-us.net> 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>
|