Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions conversions.go
Original file line number Diff line number Diff line change
Expand Up @@ -397,6 +397,9 @@ func convertInMessage(
}
// Use part of the incoming message storage as the read buffer.
to.Dst = inMsg.GetFree(int(in.Size))
if int(in.Size) > 0 && to.Dst == nil {
return nil, fmt.Errorf("cannot allocate read buffer for %d bytes", in.Size)
}
o = to

case fusekernel.OpReaddir:
Expand Down
Loading