Skip to content

Commit

Permalink
FreeBSD: do not panic on dma_buf_poll
Browse files Browse the repository at this point in the history
Some programs (waypipe) use poll to check inherited file descriptors,
and some other programs (terminal emulators?) can have non-CLOEXEC dmabufs
that leak into waypipe, causing a panic.
  • Loading branch information
valpackett authored and evadot committed Feb 11, 2022
1 parent baa4de6 commit a1ba3bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/dma-buf/dma-buf.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,8 +197,8 @@ static int
dma_buf_poll(struct file *fp, int events,
struct ucred *active_cred, struct thread *td)
{
panic("XXX implement me!!!");
return (0);
// TODO: implement this when we need it (mostly used for cross-device fence sync)
return (ENOTSUP);
}


Expand Down

0 comments on commit a1ba3bd

Please sign in to comment.