[dm-devel] [PATCH V4 01/14] multipathd: initialize major and minor in cli_add_map

Martin Wilck mwilck at suse.com
Thu Sep 10 16:18:54 UTC 2020


On Thu, 2020-09-10 at 18:46 +0800, lixiaokeng wrote:
> If dm_get_major_minor failed, log with major and minor should not
> be printed to avoid major and minor used before initialization.
> 
> Here, we set major and minor to -1 at begining
> 
> Signed-off-by: Lixiaokeng <lixiaokeng at huawei.com>
> Signed-off-by: Zhiqiang Liu <liuzhiqiang26 at huawei.com>
> Signed-off-by: Linfeilong <linfeilong at huawei.com>

Reviewed-by: Martin Wilck <mwilck at suse.com>





More information about the dm-devel mailing list