We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f7b32e7 commit e53f7b5Copy full SHA for e53f7b5
io_uring/kbuf.c
@@ -636,8 +636,8 @@ static int io_alloc_pbuf_ring(struct io_ring_ctx *ctx,
636
ibf = io_lookup_buf_free_entry(ctx, ring_size);
637
if (!ibf) {
638
ptr = io_mem_alloc(ring_size);
639
- if (!ptr)
640
- return -ENOMEM;
+ if (IS_ERR(ptr))
+ return PTR_ERR(ptr);
641
642
/* Allocate and store deferred free entry */
643
ibf = kmalloc(sizeof(*ibf), GFP_KERNEL_ACCOUNT);
0 commit comments