diff options
Diffstat (limited to 'block/deadline-iosched.c')
-rw-r--r-- | block/deadline-iosched.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/block/deadline-iosched.c b/block/deadline-iosched.c index 6d673e938d3e..87ca02ac84cb 100644 --- a/block/deadline-iosched.c +++ b/block/deadline-iosched.c | |||
@@ -360,10 +360,9 @@ static void *deadline_init_queue(request_queue_t *q) | |||
360 | { | 360 | { |
361 | struct deadline_data *dd; | 361 | struct deadline_data *dd; |
362 | 362 | ||
363 | dd = kmalloc_node(sizeof(*dd), GFP_KERNEL, q->node); | 363 | dd = kmalloc_node(sizeof(*dd), GFP_KERNEL | __GFP_ZERO, q->node); |
364 | if (!dd) | 364 | if (!dd) |
365 | return NULL; | 365 | return NULL; |
366 | memset(dd, 0, sizeof(*dd)); | ||
367 | 366 | ||
368 | INIT_LIST_HEAD(&dd->fifo_list[READ]); | 367 | INIT_LIST_HEAD(&dd->fifo_list[READ]); |
369 | INIT_LIST_HEAD(&dd->fifo_list[WRITE]); | 368 | INIT_LIST_HEAD(&dd->fifo_list[WRITE]); |