diff --git a/vhost_rs/src/vhost_user/slave_req_handler.rs b/vhost_rs/src/vhost_user/slave_req_handler.rs index 50b8414db..f3b0770f7 100644 --- a/vhost_rs/src/vhost_user/slave_req_handler.rs +++ b/vhost_rs/src/vhost_user/slave_req_handler.rs @@ -278,9 +278,7 @@ impl SlaveReqHandler { self.set_config(&hdr, size, &buf)?; } MasterReq::SET_SLAVE_REQ_FD => { - if self.acked_protocol_features & VhostUserProtocolFeatures::SLAVE_SEND_FD.bits() - == 0 - { + if self.acked_protocol_features & VhostUserProtocolFeatures::SLAVE_REQ.bits() == 0 { return Err(Error::InvalidOperation); } self.set_slave_req_fd(&hdr, rfds)?;