From: Colin King <colin.king@xxxxxxxxxxxxx> Date: Thu, 17 Aug 2017 10:01:07 +0100 > From: Colin Ian King <colin.king@xxxxxxxxxxxxx> > > Media type is only set if h->ae_algo->ops->get_media_type is called > so there is a possibility that media_type is uninitialized when it is > used a switch statement. Fix this by initializing media_type to > HNAE3_MEDIA_TYPE_UNKNOWN. > > Detected by CoverityScan, CID#1452624("Uninitialized scalar variable") > > Fixes: 496d03e960ae ("net: hns3: Add Ethtool support to HNS3 driver") > Signed-off-by: Colin Ian King <colin.king@xxxxxxxxxxxxx> Applied. -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html