Skip to contentSkip to conversation

um: Fix typo in vector driver transport option definition

PATCH Applied Ignat Korchagin 2 participants 2 messages Apr 25, 2020 – Apr 29, 2020 User-mode Linux (UML)

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 um: Fix typo in vector driver transport option definition

No big problem as "raw" and "gre" have the same length, but could go wrong if they don't in the future.

---
 arch/um/drivers/vector_user.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/drivers/vector_user.h +1 -1
index 91f35b266aba..d29d5fdd98fa 100644
@@ -17,7 +17,7 @@
 #define TRANS_TAP_LEN strlen(TRANS_TAP)
 
 #define TRANS_GRE "gre"
-#define TRANS_GRE_LEN strlen(TRANS_RAW)
+#define TRANS_GRE_LEN strlen(TRANS_GRE)
 
 #define TRANS_L2TPV3 "l2tpv3"
 #define TRANS_L2TPV3_LEN strlen(TRANS_L2TPV3)
Signature · 7 lines
2.20.1


_______________________________________________
linux-um mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-um
#1 lore raw
Quoted 14 lines · Ignat Korchagin

No big problem as "raw" and "gre" have the same length, but could go wrong if they don't in the future.

---
 arch/um/drivers/vector_user.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
arch/um/drivers/vector_user.h +0 -0
index 91f35b266aba..d29d5fdd98fa 100644

arch/um/drivers/vector_user.h

Quoted 9 lines
arch/um/drivers/vector_user.h +1 -2
@@ -17,7 +17,7 @@
 #define TRANS_TAP_LEN strlen(TRANS_TAP)
 
 #define TRANS_GRE "gre"
-#define TRANS_GRE_LEN strlen(TRANS_RAW)
+#define TRANS_GRE_LEN strlen(TRANS_GRE)
 
 #define TRANS_L2TPV3 "l2tpv3"
 #define TRANS_L2TPV3_LEN strlen(TRANS_L2TPV3)
--

Applied, thanks!

Signature · 7 lines
Thanks,
//richard

_______________________________________________
linux-um mailing list
[email protected]
http://lists.infradead.org/mailman/listinfo/linux-um