[dm-devel] [PATCH] multipathd: fix issue in 'map $map getprstatus' reply

Bart Van Assche bart.vanassche at sandisk.com
Wed Aug 3 16:26:16 UTC 2016


On 08/03/2016 12:09 AM, peng.liang5 at zte.com.cn wrote:
> +	*len = 3;
> +	asprintf(reply, "%d\n", mpp->prflag);

Hello Peng,

Please use the return value of asprintf() to compute *len instead of 
assigning a hard-coded constant to *len.

Thanks,

Bart.




More information about the dm-devel mailing list