]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
IPoIB: Avoid reading an uninitialized member variable
authorBart Van Assche <bart.vanassche@sandisk.com>
Mon, 21 Nov 2016 18:21:41 +0000 (10:21 -0800)
committerSasha Levin <alexander.levin@verizon.com>
Fri, 13 Jan 2017 01:56:57 +0000 (20:56 -0500)
commit8c84816cedcbd17d0b1c8e8ce991a0dadf47f301
treed5096e433c0ae80dd0f68683d666c1fddf1f2503
parent5eba61298b748b9f948a1de1055e84e620299d81
IPoIB: Avoid reading an uninitialized member variable

[ Upstream commit 11b642b84e8c43e8597de031678d15c08dd057bc ]

This patch avoids that Coverity reports the following:

    Using uninitialized value port_attr.state when calling printk

Fixes: commit 94232d9ce817 ("IPoIB: Start multicast join process only on active ports")
Signed-off-by: Bart Van Assche <bart.vanassche@sandisk.com>
Cc: Erez Shitrit <erezsh@mellanox.com>
Cc: <stable@vger.kernel.org>
Reviewed-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Doug Ledford <dledford@redhat.com>
Signed-off-by: Sasha Levin <alexander.levin@verizon.com>
drivers/infiniband/ulp/ipoib/ipoib_multicast.c