aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-08-17 10:01:07 +0100
committerDavid S. Miller <[email protected]>2017-08-17 10:06:07 -0700
commitfd07a62d58c16b1fdd46f4099791c5bd242908c3 (patch)
tree4d0391fe6c983dc26b1eaff1b0561bbfba070d1d /tools/perf/scripts/python
parent93345c06b74513c1e1c7933aef146e1d03420079 (diff)
net: hns3: ensure media_type is unitialized
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions