bus: fix unitialized variable access in error path