--- mm/shmem.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/mm/shmem.c b/mm/shmem.c index 8612a95..3f81120 100644 --- a/mm/shmem.c +++ b/mm/shmem.c @@ -890,7 +890,7 @@ static void shmem_show_mpol(struct seq_file *seq, struct mempolicy *mpol) if (!mpol || mpol->mode == MPOL_DEFAULT) return; /* show nothing */ - mpol_to_str(buffer, sizeof(buffer), mpol); + VM_BUG_ON(mpol_to_str(buffer, sizeof(buffer), mpol) < 0);
NAK. VM_BUG_ON is a kind of assertion. It erase the contents if CONFIG_DEBUG_VM not set. An argument of assertion should not have any side effect. -- To unsubscribe, send a message with 'unsubscribe linux-mm' in the body to majordomo@xxxxxxxxx. For more info on Linux MM, see: http://www.linux-mm.org/ . Don't email: <a href=mailto:"dont@xxxxxxxxx"> email@xxxxxxxxx </a>