[lkml]   [2017]   [Aug]   [18]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
SubjectRe: [PATCH] mlx5: ensure 0 is returned when vport is zero
From: Colin King <>
Date: Fri, 18 Aug 2017 14:49:25 +0100

> From: Colin Ian King <>
> Currently, if vport is zero then then an uninialized return status
> in err is returned. Since the only return status at the end of the
> function esw_add_uc_addr is zero for the current set of return paths
> we may as well just return 0 rather than err to fix this issue.
> Detected by CoverityScan, CID#1452698 ("Uninitialized scalar variable")
> Fixes: eeb66cdb6826 ("net/mlx5: Separate between E-Switch and MPFS")
> Signed-off-by: Colin Ian King <>

Applied to net-next, thanks.

 \ /
  Last update: 2017-08-19 01:30    [W:0.042 / U:4.180 seconds]
©2003-2018 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site