@@ -272,6 +275,7 @@ static struct cbt_info *do_cbt_alloc(struct request_queue
*q, __u8 *name,
if (!cbt)
return ERR_PTR(-ENOMEM);
+ INIT_LIST_HEAD(&cbt->list);
This initialization is excess, it is only required for a list_head we
add TO, the added list_head can be left uninitialized.
cbt->block_bits = ilog2(blocksize);
cbt->block_max = DIV_ROUND_UP(size, blocksize);
spin_lock_init(&cbt->lock);
--
Best regards, Tikhomirov Pavel
Senior Software Developer, Virtuozzo.
_______________________________________________
Devel mailing list
Devel@openvz.org
https://lists.openvz.org/mailman/listinfo/devel