diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-03-28 05:35:39 +0300 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-29 17:09:55 +0300 |
commit | d35dc58dd26e2aef5dd7ed1929179c9974f8bb97 (patch) | |
tree | 13cada42c0721c3d6bdc63d13c649b092129d651 /tools/perf/scripts/python/mem-phys-addr.py | |
parent | 90e735aecc4ce94eb4a2838f9fe04ee8da70b529 (diff) | |
download | linux-d35dc58dd26e2aef5dd7ed1929179c9974f8bb97.tar.xz |
RDMA/hns: Fix uninitialized variable bug
There is a potential execution path in which variable *ret* is returned
without being properly initialized, previously.
Fix this by initializing variable *ret* to 0.
Link: https://lore.kernel.org/r/20200328023539.GA32016@embeddedor
Addresses-Coverity-ID: 1491917 ("Uninitialized scalar variable")
Fixes: 2f49de21f3e9 ("RDMA/hns: Optimize mhop get flow for multi-hop addressing")
Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: Weihang Li <liweihang@huawei.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions