If you see a lock icon on the right of the smart object layer, you won't be able to edit it. To unlock it, ensure the layer is selected, then click on the lock icon on the Lock option at the top of the layers in the panel.