aboutsummaryrefslogtreecommitdiffstats
path: root/net/sctp
diff options
context:
space:
mode:
authorAmerigo Wang <amwang@redhat.com>2010-05-05 00:26:45 +0000
committerDavid S. Miller <davem@davemloft.net>2010-05-15 23:28:38 -0700
commit00b7c3395aec3df43de5bd02a3c5a099ca51169f (patch)
tree6e4a1ec71a1cedadab752bdbfc25ddbf53202447 /net/sctp
parentMerge branch 'master' of git://git.kernel.org/pub/scm/linux/kernel/git/inaky/wimax (diff)
downloadlinux-dev-00b7c3395aec3df43de5bd02a3c5a099ca51169f.tar.xz
linux-dev-00b7c3395aec3df43de5bd02a3c5a099ca51169f.zip
sysctl: refactor integer handling proc code
(Based on Octavian's work, and I modified a lot.) As we are about to add another integer handling proc function a little bit of cleanup is in order: add a few helper functions to improve code readability and decrease code duplication. In the process a bug is also fixed: if the user specifies a number with more then 20 digits it will be interpreted as two integers (e.g. 10000...13 will be interpreted as 100.... and 13). Behavior for EFAULT handling was changed as well. Previous to this patch, when an EFAULT error occurred in the middle of a write operation, although some of the elements were set, that was not acknowledged to the user (by shorting the write and returning the number of bytes accepted). EFAULT is now treated just like any other errors by acknowledging the amount of bytes accepted. Signed-off-by: Octavian Purdila <opurdila@ixiacom.com> Signed-off-by: WANG Cong <amwang@redhat.com> Cc: Eric W. Biederman <ebiederm@xmission.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/sctp')
0 files changed, 0 insertions, 0 deletions