Skip to content

Commit 1dabe71

Browse files
committed
Merge branch 'io_uring-6.17' into for-next
* io_uring-6.17: io_uring/memmap: cast nr_pages to size_t before shifting
2 parents 9c28ff6 + 33503c0 commit 1dabe71

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

io_uring/memmap.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ static int io_region_allocate_pages(struct io_ring_ctx *ctx,
156156
unsigned long mmap_offset)
157157
{
158158
gfp_t gfp = GFP_KERNEL_ACCOUNT | __GFP_ZERO | __GFP_NOWARN;
159-
unsigned long size = mr->nr_pages << PAGE_SHIFT;
159+
size_t size = (size_t) mr->nr_pages << PAGE_SHIFT;
160160
unsigned long nr_allocated;
161161
struct page **pages;
162162
void *p;

0 commit comments

Comments
 (0)