ppp: mppe: Add softdep to arc4 [Linux 4.9.186]

This Linux kernel change "ppp: mppe: Add softdep to arc4" is included in the Linux 4.9.186 release. This change is authored by Takashi Iwai <tiwai [at] suse.de> on Wed Jun 19 15:34:07 2019 +0200. The commit for this change in Linux stable tree is a31ba8e (patch) which is from upstream commit aad1dcc. The same Linux upstream change may have been applied to various maintained Linux releases and you can find all Linux releases containing changes from upstream aad1dcc.

ppp: mppe: Add softdep to arc4

[ Upstream commit aad1dcc4f011ea409850e040363dff1e59aa4175 ]

The arc4 crypto is mandatory at ppp_mppe probe time, so let's put a
softdep line, so that the corresponding module gets prepared
gracefully.  Without this, a simple inclusion to initrd via dracut
failed due to the missing dependency, for example.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>

There is one line of Linux source code added/deleted in this change. Code changes to Linux kernel are as follows.

 drivers/net/ppp/ppp_mppe.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/net/ppp/ppp_mppe.c b/drivers/net/ppp/ppp_mppe.c
index f60f766..92f52a7 100644
--- a/drivers/net/ppp/ppp_mppe.c
+++ b/drivers/net/ppp/ppp_mppe.c
@@ -63,6 +63,7 @@
 MODULE_DESCRIPTION("Point-to-Point Protocol Microsoft Point-to-Point Encryption support");
 MODULE_ALIAS("ppp-compress-" __stringify(CI_MPPE));
+MODULE_SOFTDEP("pre: arc4");

 static unsigned int

Leave a Reply

Your email address will not be published. Required fields are marked *