Thread (2 messages) 2 messages, 2 authors, 2019-06-20

Re: [PATCH] null_blk: remove duplicate 0 initialization

From: Jens Axboe <axboe@kernel.dk>
Date: 2019-06-20 09:19:20

On 6/19/19 10:56 PM, Chaitanya Kulkarni wrote:
In function null_add_dev() struct nullb *nullb member is allocated
using kzalloc_node() which returns 0red memory.

In function setup_queues() which is called from the null_add_dev(), on
successful queue allocation we set the nullb->nr_queues = 0 which is not
needed due to earlier use of kzalloc_node().
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