aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/hwmon/sht15
diff options
context:
space:
mode:
authorAnton Blanchard <anton@samba.org>2011-08-04 14:07:38 +0000
committerGreg Kroah-Hartman <gregkh@suse.de>2011-08-15 18:31:33 -0700
commit365f1cd4cadc46455db97d0b568ea7ad3af106be (patch)
treed7bc8b9bf6188af0f46631322f5d0e8b6544c1c4 /Documentation/hwmon/sht15
parentc82ac94469ab54ca57b05fd85ce709530d44002f (diff)
downloadkernel_samsung_smdk4412-365f1cd4cadc46455db97d0b568ea7ad3af106be.tar.gz
kernel_samsung_smdk4412-365f1cd4cadc46455db97d0b568ea7ad3af106be.tar.bz2
kernel_samsung_smdk4412-365f1cd4cadc46455db97d0b568ea7ad3af106be.zip
net: sendmmsg should only return an error if no messages were sent
commit 728ffb86f10873aaf4abd26dde691ee40ae731fe upstream. sendmmsg uses a similar error return strategy as recvmmsg but it turns out to be a confusing way to communicate errors. The current code stores the error code away and returns it on the next sendmmsg call. This means a call with completely valid arguments could get an error from a previous call. Change things so we only return an error if no datagrams could be sent. If less than the requested number of messages were sent, the application must retry starting at the first failed one and if the problem is persistent the error will be returned. This matches the behaviour of other syscalls like read/write - it is not an error if less than the requested number of elements are sent. 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 'Documentation/hwmon/sht15')
0 files changed, 0 insertions, 0 deletions