mirror of
https://github.com/torvalds/linux.git
synced 2026-03-08 03:24:45 +01:00
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>
This commit is contained in:
parent
55612ddb62
commit
574511615a
1 changed files with 3 additions and 0 deletions
|
|
@ -197,6 +197,9 @@ static int dlm_check_protocol_and_dlm_running(unsigned int x)
|
|||
break;
|
||||
case 1:
|
||||
/* SCTP */
|
||||
if (!IS_ENABLED(CONFIG_IP_SCTP))
|
||||
return -EOPNOTSUPP;
|
||||
|
||||
break;
|
||||
default:
|
||||
return -EINVAL;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue