return ENOBUFS when ring is full
This commit is contained in:
parent
59ef640d9e
commit
2760fcd0a6
@ -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,
|
||||
|
Loading…
x
Reference in New Issue
Block a user