Extending linear space-valued functions