The stability of two-dimensional linear flows