Thread (3 messages) 3 messages, 3 authors, 2020-01-30

Re: [PATCH] drbd fifo_alloc: use struct_size

From: Jens Axboe <axboe@kernel.dk>
Date: 2020-01-30 04:04:13
Also in: lkml

On 1/24/20 1:03 PM, Stephen Kitt wrote:
Switching to struct_size for the allocation in fifo_alloc avoids
hard-coding the type of fifo_buffer.values in fifo_alloc. It also
provides overflow protection; to avoid pessimistic code being
generated by the compiler as a result, this patch also switches
fifo_size to unsigned, propagating the change as appropriate.
Applied, thanks.

-- 
Jens Axboe
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help