diff --git a/module/zfs/spa.c b/module/zfs/spa.c index 6cd463599f27..9c8edb89a815 100644 --- a/module/zfs/spa.c +++ b/module/zfs/spa.c @@ -5269,7 +5269,7 @@ spa_open_common(const char *pool, spa_t **spapp, const void *tag, * If we've recovered the pool, pass back any information we * gathered while doing the load. */ - if (state == SPA_LOAD_RECOVER) { + if (state == SPA_LOAD_RECOVER && config != NULL) { fnvlist_add_nvlist(*config, ZPOOL_CONFIG_LOAD_INFO, spa->spa_load_info); }