Commit 3e2224c
io_uring: Fix return value from alloc_fixed_file_ref_node
alloc_fixed_file_ref_node() currently returns an ERR_PTR on failure.
io_sqe_files_unregister() expects it to return NULL and since it can only
return -ENOMEM, it makes more sense to change alloc_fixed_file_ref_node()
to behave that way.
Fixes: 1ffc542 ("io_uring: fix io_sqe_files_unregister() hangs")
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Signed-off-by: Jens Axboe <axboe@kernel.dk>1 parent 170b3bb commit 3e2224c
1 file changed
Lines changed: 6 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7696 | 7696 | | |
7697 | 7697 | | |
7698 | 7698 | | |
7699 | | - | |
| 7699 | + | |
7700 | 7700 | | |
7701 | 7701 | | |
7702 | 7702 | | |
7703 | 7703 | | |
7704 | | - | |
| 7704 | + | |
7705 | 7705 | | |
7706 | 7706 | | |
7707 | 7707 | | |
| |||
7795 | 7795 | | |
7796 | 7796 | | |
7797 | 7797 | | |
7798 | | - | |
| 7798 | + | |
7799 | 7799 | | |
7800 | | - | |
| 7800 | + | |
7801 | 7801 | | |
7802 | 7802 | | |
7803 | 7803 | | |
| |||
7897 | 7897 | | |
7898 | 7898 | | |
7899 | 7899 | | |
7900 | | - | |
7901 | | - | |
| 7900 | + | |
| 7901 | + | |
7902 | 7902 | | |
7903 | 7903 | | |
7904 | 7904 | | |
| |||
0 commit comments