Skip to content

Commit 5745116

Browse files
Alexander Aringteigland
authored andcommitted
dlm: reject SCTP configuration if not enabled
Reject SCTP dlm configuration if the kernel was never build with SCTP. Currently the only one known user space tool "dlm_controld" will drop an error in the logs and getting stuck. This behaviour should be fixed to deliver an error to the user or fallback to TCP. Signed-off-by: Alexander Aring <aahringo@redhat.com> Reviewed-by: Heming zhao <heming.zhao@suse.com> Signed-off-by: David Teigland <teigland@redhat.com>
1 parent 55612dd commit 5745116

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

fs/dlm/config.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,6 +197,9 @@ static int dlm_check_protocol_and_dlm_running(unsigned int x)
197197
break;
198198
case 1:
199199
/* SCTP */
200+
if (!IS_ENABLED(CONFIG_IP_SCTP))
201+
return -EOPNOTSUPP;
202+
200203
break;
201204
default:
202205
return -EINVAL;

0 commit comments

Comments
 (0)