return ENOBUFS when ring is full

This commit is contained in:
Kip Macy 2008-12-02 03:58:10 +00:00
parent 59ef640d9e
commit 2760fcd0a6

View File

@ -92,7 +92,7 @@ buf_ring_enqueue(struct buf_ring *br, void *buf)
if (prod_next == cons_tail) {
critical_exit();
return (ENOSPC);
return (ENOBUFS);
}
success = atomic_cmpset_int(&br->br_prod_head, prod_head,