Make sure root_dev is not None