aboutsummaryrefslogtreecommitdiff
path: root/lib/string_helpers.c
diff options
context:
space:
mode:
authorBart Van Assche <[email protected]>2011-10-21 19:31:07 +0200
committerRoland Dreier <[email protected]>2012-11-30 17:40:33 -0800
commitac9be30e91cffe07f762bd91ca40de065bf257d7 (patch)
tree94f6a1ced9a91c53d3c626ab81929d25fea2caa3 /lib/string_helpers.c
parenta4605a93696ee0768e55e4bce1ff7f0ee39bcf79 (diff)
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 <[email protected]> Cc: FUJITA Tomonori <[email protected]> Cc: Robert Jennings <[email protected]> Acked-by: David Dillow <[email protected]> Signed-off-by: Roland Dreier <[email protected]>
Diffstat (limited to 'lib/string_helpers.c')
0 files changed, 0 insertions, 0 deletions