[PATCH] Fix reset of existing device to its original size.