diff options
author | Anton Blanchard <anton@samba.org> | 2011-08-04 14:07:39 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2011-08-15 18:31:33 -0700 |
commit | 91f620f98412f866b385b16681d5e59b7e62e343 (patch) | |
tree | 73cfb758b6f3422554e7683b41b1621599797389 /firmware/adaptec | |
parent | 365f1cd4cadc46455db97d0b568ea7ad3af106be (diff) | |
download | kernel_samsung_smdk4412-91f620f98412f866b385b16681d5e59b7e62e343.tar.gz kernel_samsung_smdk4412-91f620f98412f866b385b16681d5e59b7e62e343.tar.bz2 kernel_samsung_smdk4412-91f620f98412f866b385b16681d5e59b7e62e343.zip |
net: Cap number of elements for sendmmsg
commit 98382f419f32d2c12d021943b87dea555677144b upstream.
To limit the amount of time we can spend in sendmmsg, cap the
number of elements to UIO_MAXIOV (currently 1024).
For error handling an application using sendmmsg needs to retry at
the first unsent message, so capping is simpler and requires less
application logic than returning EINVAL.
Signed-off-by: Anton Blanchard <anton@samba.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'firmware/adaptec')
0 files changed, 0 insertions, 0 deletions