Skip to content

Commit 8a856fd

Browse files
Alexander Aringteigland
authored andcommitted
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>
1 parent b443265 commit 8a856fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

fs/dlm/lowcomms.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -533,7 +533,7 @@ static void lowcomms_state_change(struct sock *sk)
533533
/* SCTP layer is not calling sk_data_ready when the connection
534534
* is done, so we catch the signal through here.
535535
*/
536-
if (sk->sk_shutdown == RCV_SHUTDOWN)
536+
if (sk->sk_shutdown & RCV_SHUTDOWN)
537537
lowcomms_data_ready(sk);
538538
}
539539

0 commit comments

Comments
 (0)