In this paper, we first establish a stability result for a class of linear switched systems involving Kronecker product. The problem is interesting in that the system matrix does not have to be Hurwitz at any time instant. This class of linear switched systems arises in the control of multi-agent systems under switching network topology. As applications of this stability result, we give the solvability conditions for both the leaderless consensus problem and the leader-following consensus problem for general marginally stable linear multi-agent systems under switching network topology. In contrast with some existing results, our results only assume that the dynamic graph is uniformly connected.