diff --git a/net/sctp/sysctl.c b/net/sctp/sysctl.c
index 26d50c565f54223ec28d29358932227b4b22acd1..3e0fc51272259a5de5251391405cf2927f95611d 100644
--- a/net/sctp/sysctl.c
+++ b/net/sctp/sysctl.c
@@ -320,7 +320,7 @@ static int proc_sctp_do_hmac_alg(struct ctl_table *ctl, int write,
 	struct ctl_table tbl;
 	bool changed = false;
 	char *none = "none";
-	char tmp[8];
+	char tmp[8] = {0};
 	int ret;
 
 	memset(&tbl, 0, sizeof(struct ctl_table));