Skip to content

Commit 36a25de

Browse files
Alex Eldertorvalds
authored andcommitted
sctp: fix Kconfig bug in default cookie hmac selection
Commit 0d0863b ("sctp: Change defaults on cookie hmac selection") added a "choice" to the sctp Kconfig file. It introduced a bug which led to an infinite loop when while running "make oldconfig". The problem is that the wrong symbol was defined as the default value for the choice. Using the correct value gets rid of the infinite loop. Note: if CONFIG_SCTP_COOKIE_HMAC_SHA1=y was present in the input config file, both that and CONFIG_SCTP_COOKIE_HMAC_MD5=y be present in the generated config file. Signed-off-by: Alex Elder <elder@inktank.com> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
1 parent f776372 commit 36a25de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

net/sctp/Kconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ config SCTP_DBG_OBJCNT
6868
If unsure, say N
6969
choice
7070
prompt "Default SCTP cookie HMAC encoding"
71-
default SCTP_COOKIE_HMAC_MD5
71+
default SCTP_DEFAULT_COOKIE_HMAC_MD5
7272
help
7373
This option sets the default sctp cookie hmac algorithm
7474
when in doubt select 'md5'

0 commit comments

Comments
 (0)