aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/fpga/machxo2-spi.c
diff options
context:
space:
mode:
authorGustavo A. R. Silva <[email protected]>2020-03-28 02:35:39 +0000
committerJason Gunthorpe <[email protected]>2020-03-29 14:09:55 +0000
commitd35dc58dd26e2aef5dd7ed1929179c9974f8bb97 (patch)
tree13cada42c0721c3d6bdc63d13c649b092129d651 /drivers/fpga/machxo2-spi.c
parentRDMA/hns: Modify the mask of QP number for CQE of hip08 (diff)
downloadkernel-d35dc58dd26e2aef5dd7ed1929179c9974f8bb97.tar.gz
kernel-d35dc58dd26e2aef5dd7ed1929179c9974f8bb97.zip
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 <[email protected]> Acked-by: Weihang Li <[email protected]> Signed-off-by: Jason Gunthorpe <[email protected]>
Diffstat (limited to 'drivers/fpga/machxo2-spi.c')
0 files changed, 0 insertions, 0 deletions