The root of polynomial $ p(m) $ is:
$$ \begin{aligned}m &= -1 \end{aligned} $$The solution of $ ~ m^2+2m+1 = 0 ~$ is $~ m = -1 ~$.
You can use step-by-step quadratic equation solver to see a detailed explanation on how to solve this quadratic equation.