mirror of
				https://github.com/torvalds/linux.git
				synced 2025-11-04 02:30:34 +02:00 
			
		
		
		
	io_uring/net: improve io_get_notif_slot types
Don't use signed int for slot indexing. Signed-off-by: Pavel Begunkov <asml.silence@gmail.com> Link: https://lore.kernel.org/r/e4d15aefebb5e55729dd9b5ec01ab16b70033343.1658742118.git.asml.silence@gmail.com Signed-off-by: Jens Axboe <axboe@kernel.dk>
This commit is contained in:
		
							parent
							
								
									d8b6171bd5
								
							
						
					
					
						commit
						cb309ae49d
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -67,7 +67,7 @@ static inline struct io_notif *io_get_notif(struct io_ring_ctx *ctx,
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
static inline struct io_notif_slot *io_get_notif_slot(struct io_ring_ctx *ctx,
 | 
					static inline struct io_notif_slot *io_get_notif_slot(struct io_ring_ctx *ctx,
 | 
				
			||||||
						      int idx)
 | 
											      unsigned idx)
 | 
				
			||||||
	__must_hold(&ctx->uring_lock)
 | 
						__must_hold(&ctx->uring_lock)
 | 
				
			||||||
{
 | 
					{
 | 
				
			||||||
	if (idx >= ctx->nr_notif_slots)
 | 
						if (idx >= ctx->nr_notif_slots)
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in a new issue