From: Bart Van Assche Date: Fri, 21 Oct 2011 17:31:07 +0000 (+0200) Subject: srp_transport: Fix attribute registration X-Git-Tag: omap-for-v3.8/fixes-for-merge-window-v4-signed~23^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac9be30e91cffe07f762bd91ca40de065bf257d7;p=pandora-kernel.git srp_transport: Fix attribute registration Register transport attributes after the attribute array has been set up instead of before. The current code can trigger a race condition because the code reading the attribute array can run on another thread than the code that initialized that array. Make sure that any code reading the attribute array will see all values written into that array. Signed-off-by: Bart Van Assche Cc: FUJITA Tomonori Cc: Robert Jennings Acked-by: David Dillow Signed-off-by: Roland Dreier --- Reading git-diff-tree failed