[dpdk-stable] [PATCH 18.11] net/dpaa2: fix possible use of uninitialized vars

Kevin Traynor ktraynor at redhat.com
Fri Dec 13 12:32:48 CET 2019


On 13/12/2019 10:27, Andrzej Ostruszka wrote:
> [ upstream commit 7bbc7dc431a66e81514219f1734ed263a3db3359 ]
> 
> This patch fixes 'maybe-uninitialized' warnings reported by compiler
> when using LTO.
> 
> Compiler warning pointing to this error (with LTO enabled):
> error: ‘kg_cfg.extracts[0].masks[0].mask’ may be used uninitialized in
> this function [-Werror=maybe-uninitialized]
>     extr->masks[j].mask = cfg->extracts[i].masks[j].mask;
> 
> Fixes: 16bbc98a3e63 ("bus/fslmc: update MC to 10.3.x")
> Cc: stable at dpdk.org
> 
> Signed-off-by: Andrzej Ostruszka <aostruszka at marvell.com>

Thanks Andrzej, queued for push next week.



More information about the stable mailing list