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

This Linux kernel change "ppp: mppe: Add softdep to arc4" is included in the Linux 4.19.60 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 3232bcc (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 a205750..8609c1a 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_LICENSE("Dual BSD/GPL");
 MODULE_ALIAS("ppp-compress-" __stringify(CI_MPPE));
+MODULE_SOFTDEP("pre: arc4");
 MODULE_VERSION("1.0.2");

 static unsigned int

Leave a Reply

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