mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 05:44:45 +01:00
dlm: mask sk_shutdown value
The sk->sk_shutdown value is flag value so use masking to check if RCV_SHUTDOWN is set as other possible values like SEND_SHUTDOWN can set as well. Signed-off-by: Alexander Aring <aahringo@redhat.com> Tested-by: Heming zhao <heming.zhao@suse.com> Reviewed-by: Heming zhao <heming.zhao@suse.com> Signed-off-by: David Teigland <teigland@redhat.com>
This commit is contained in:
parent
b4432656b3
commit
8a856fdede
1 changed files with 1 additions and 1 deletions
|
|
@ -533,7 +533,7 @@ static void lowcomms_state_change(struct sock *sk)
|
|||
/* SCTP layer is not calling sk_data_ready when the connection
|
||||
* is done, so we catch the signal through here.
|
||||
*/
|
||||
if (sk->sk_shutdown == RCV_SHUTDOWN)
|
||||
if (sk->sk_shutdown & RCV_SHUTDOWN)
|
||||
lowcomms_data_ready(sk);
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue