aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
authorVlad Yasevich <vladislav.yasevich@hp.com>2009-11-23 15:54:01 -0500
committerVlad Yasevich <vladislav.yasevich@hp.com>2009-11-23 15:54:01 -0500
commit4814326b59db0cfd18ac652626d955ad3f57fb0f (patch)
tree41975c6b2eea1812012802bdb2337c43fa240178 /kernel
parentda85b7396f3b6cb3fea7d77091498bfa1051ef7c (diff)
downloadkernel_samsung_smdk4412-4814326b59db0cfd18ac652626d955ad3f57fb0f.zip
kernel_samsung_smdk4412-4814326b59db0cfd18ac652626d955ad3f57fb0f.tar.gz
kernel_samsung_smdk4412-4814326b59db0cfd18ac652626d955ad3f57fb0f.tar.bz2
sctp: prevent too-fast association id reuse
We use the idr subsystem and always ask for an id at or above 1. This results in a id reuse when one association is terminated while another is created. To prevent re-use, we keep track of the last id returned and ask for that id + 1 as a base for each query. We let the idr spin lock protect this base id as well. Signed-off-by: Vlad Yasevich <vladislav.yasevich@hp.com>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions