aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--mm/mempolicy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mm/mempolicy.c b/mm/mempolicy.c
index c4403cdf3433..eca4a3129129 100644
--- a/mm/mempolicy.c
+++ b/mm/mempolicy.c
@@ -2950,7 +2950,7 @@ void mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol)
2950 return; 2950 return;
2951 } 2951 }
2952 2952
2953 p += snprintf(p, maxlen, policy_modes[mode]); 2953 p += snprintf(p, maxlen, "%s", policy_modes[mode]);
2954 2954
2955 if (flags & MPOL_MODE_FLAGS) { 2955 if (flags & MPOL_MODE_FLAGS) {
2956 p += snprintf(p, buffer + maxlen - p, "="); 2956 p += snprintf(p, buffer + maxlen - p, "=");