diff options
author | Gustavo A. R. Silva <gustavo@embeddedor.com> | 2020-03-27 21:35:39 -0500 |
---|---|---|
committer | Jason Gunthorpe <jgg@mellanox.com> | 2020-03-29 11:09:55 -0300 |
commit | d35dc58dd26e2aef5dd7ed1929179c9974f8bb97 (patch) | |
tree | 13cada42c0721c3d6bdc63d13c649b092129d651 /lib/fdt_empty_tree.c | |
parent | 90e735aecc4ce94eb4a2838f9fe04ee8da70b529 (diff) |
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 'lib/fdt_empty_tree.c')
0 files changed, 0 insertions, 0 deletions