Linear stability of a fluid channel with a porous layer in the center