Photoshop CS3: Smart object and linking layer mask?

This is problably a stupid question, but in CS3 when you create a smart object and then a layer mask. I can’t seem to be able to link them so I can move both the layer and the mask together. Anyone know how to do this?