Re: [PATCH net-next] net: dsa: Introduce dsa_is_port_initialized

2015-02-25 Thread David Miller
From: Guenter Roeck Date: Tue, 24 Feb 2015 23:02:02 -0800 > 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. > >

Re: [PATCH net-next] net: dsa: Introduce dsa_is_port_initialized

2015-02-25 Thread David Miller
From: Guenter Roeck li...@roeck-us.net Date: Tue, 24 Feb 2015 23:02:02 -0800 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

[PATCH net-next] net: dsa: Introduce dsa_is_port_initialized

2015-02-24 Thread Guenter Roeck
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 --- Applies to net-next on top of Florian's

[PATCH net-next] net: dsa: Introduce dsa_is_port_initialized

2015-02-24 Thread Guenter Roeck
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 li...@roeck-us.net --- Applies to net-next on top