diff options
author | Rainer Weikusat <rweikusat@mobileactivedefense.com> | 2016-02-18 13:39:46 +0100 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2016-02-20 05:50:31 +0100 |
commit | 18eceb818dc37bbc783ec7ef7703f270cc6cd281 (patch) | |
tree | 1b22d754e79d5b879f1c1315f4966c057a610993 /ipc | |
parent | unix_diag: fix incorrect sign extension in unix_lookup_by_ino (diff) | |
download | linux-18eceb818dc37bbc783ec7ef7703f270cc6cd281.tar.xz linux-18eceb818dc37bbc783ec7ef7703f270cc6cd281.zip |
af_unix: Don't use continue to re-execute unix_stream_read_generic loop
The unix_stream_read_generic function tries to use a continue statement
to restart the receive loop after waiting for a message. This may not
work as intended as the caller might use a recvmsg call to peek at
control messages without specifying a message buffer. If this was the
case, the continue will cause the function to return without an error
and without the credential information if the function had to wait for a
message while it had returned with the credentials otherwise. Change to
using goto to restart the loop without checking the condition first in
this case so that credentials are returned either way.
Signed-off-by: Rainer Weikusat <rweikusat@mobileactivedefense.com>
Acked-by: Hannes Frederic Sowa <hannes@stressinduktion.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'ipc')
0 files changed, 0 insertions, 0 deletions