summaryrefslogtreecommitdiffstats
path: root/strgfnhandler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'strgfnhandler.cpp')
-rw-r--r--strgfnhandler.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/strgfnhandler.cpp b/strgfnhandler.cpp
index a00fc73..9526525 100644
--- a/strgfnhandler.cpp
+++ b/strgfnhandler.cpp
@@ -6,6 +6,7 @@
#include <cstdio>
#include <cstring>
#include <phosphor-logging/log.hpp>
+#include <sdbusplus/bus.hpp>
void register_netfn_storage_write_fru() __attribute__((constructor));
@@ -100,8 +101,9 @@ ipmi_ret_t ipmi_storage_write_fru_data(ipmi_netfn_t netfn, ipmi_cmd_t cmd,
// We received some bytes. It may be full or partial. Send a valid
// FRU file to the inventory controller on DBus for the correct number
+ sdbusplus::bus::bus bus{bus_type};
bool bmc_fru = false;
- validateFRUArea(reqptr->frunum, fru_file_name, bus_type, bmc_fru);
+ validateFRUArea(reqptr->frunum, fru_file_name, bus, bmc_fru);
return rc;
}
OpenPOWER on IntegriCloud