net/mlx4_core: Adjustments to SET_PORT for IB SR-IOV
[cascardo/linux.git] / mm / mempolicy.c
index bd92431..4ada3be 100644 (file)
@@ -2562,7 +2562,7 @@ int mpol_to_str(char *buffer, int maxlen, struct mempolicy *pol, int no_context)
                break;
 
        default:
-               BUG();
+               return -EINVAL;
        }
 
        l = strlen(policy_modes[mode]);