Marlin vs S&W magazines

I recently purchased a Marlin 9 Camp Carbine. it came with 2 Marlin 10- 12 round magazines. I upgraded the buffer before taking it to the range. I have a S&W 5904 with a 14 round S&W magazine. The Marlin magazines and the S&W mag worked fine in the Camp 9 but the Marlin magazines would not lock into the S&W 5904. Is that correct?