From: Guenter Roeck Date: Wed, 25 Feb 2015 07:02:02 +0000 (-0800) Subject: net: dsa: Introduce dsa_is_port_initialized X-Git-Tag: omap-for-v4.2/o2_dc~131^2~397 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d79d21073626cf022943e5c4c10a97cdf7cb8465;p=pandora-kernel.git 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 Signed-off-by: David S. Miller --- Reading git-diff-tree failed