Skip to content

Commit

Permalink
[libos] Enhancement: Update pushto function
Browse files Browse the repository at this point in the history
  • Loading branch information
carvalhof committed Mar 12, 2024
1 parent e401ed6 commit db313ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/rust/demikernel/libos/network/libos.rs
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ impl<T: NetworkTransport> SharedNetworkLibOS<T> {
pub fn pushto(&mut self, qd: QDesc, sga: &demi_sgarray_t, remote: SocketAddr) -> Result<QToken, Fail> {
trace!("pushto() qd={:?}", qd);

let buf: DemiBuffer = self.transport.clone_sgarray(sga)?;
let buf: DemiBuffer = self.transport.into_buf(sga)?;
if buf.len() == 0 {
return Err(Fail::new(libc::EINVAL, "zero-length buffer"));
}
Expand Down

0 comments on commit db313ad

Please sign in to comment.