transport: register init_pollfd callback for af-mctp
This was missed when initializing af-mctp.
Fixes: ba6971b9ae69 ("requester: Add af_mctp transport")
Change-Id: Idf3589a2544ce277639e89359904112aeae09073
Signed-off-by: Delphine CC Chiu <Delphine_CC_Chiu@wiwynn.com>
diff --git a/CHANGELOG.md b/CHANGELOG.md
index eefc0a0..a770f69 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -28,6 +28,10 @@
1. pdr: Remove pldm_entity_association_pdr_add()
+### Fixed
+
+1. transport: register init_pollfd callback for af-mctp
+
## [0.5.0] - 2023-08-09
### Added
diff --git a/src/transport/af-mctp.c b/src/transport/af-mctp.c
index 4766d14..ae00fe4 100644
--- a/src/transport/af-mctp.c
+++ b/src/transport/af-mctp.c
@@ -152,6 +152,7 @@
af_mctp->transport.version = 1;
af_mctp->transport.recv = pldm_transport_af_mctp_recv;
af_mctp->transport.send = pldm_transport_af_mctp_send;
+ af_mctp->transport.init_pollfd = pldm_transport_af_mctp_init_pollfd;
af_mctp->socket = socket(AF_MCTP, SOCK_DGRAM, 0);
if (af_mctp->socket == -1) {
free(af_mctp);