diff
8 	if (mas == NULL)
9 	    return -EINVAL; // or appropriate error handling
10 	if (mas_is_start(mas)) {
