diff options
Diffstat (limited to 'block/blk-tag.c')
| -rw-r--r-- | block/blk-tag.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/block/blk-tag.c b/block/blk-tag.c index 09f19c6c52ce..24b20d86bcbc 100644 --- a/block/blk-tag.c +++ b/block/blk-tag.c | |||
| @@ -99,12 +99,12 @@ init_tag_map(struct request_queue *q, struct blk_queue_tag *tags, int depth) | |||
| 99 | __func__, depth); | 99 | __func__, depth); |
| 100 | } | 100 | } |
| 101 | 101 | ||
| 102 | tag_index = kzalloc(depth * sizeof(struct request *), GFP_ATOMIC); | 102 | tag_index = kcalloc(depth, sizeof(struct request *), GFP_ATOMIC); |
| 103 | if (!tag_index) | 103 | if (!tag_index) |
| 104 | goto fail; | 104 | goto fail; |
| 105 | 105 | ||
| 106 | nr_ulongs = ALIGN(depth, BITS_PER_LONG) / BITS_PER_LONG; | 106 | nr_ulongs = ALIGN(depth, BITS_PER_LONG) / BITS_PER_LONG; |
| 107 | tag_map = kzalloc(nr_ulongs * sizeof(unsigned long), GFP_ATOMIC); | 107 | tag_map = kcalloc(nr_ulongs, sizeof(unsigned long), GFP_ATOMIC); |
| 108 | if (!tag_map) | 108 | if (!tag_map) |
| 109 | goto fail; | 109 | goto fail; |
| 110 | 110 | ||
