commit | 4051f5ebb11c6ef4b0d3eac2fbbd187c070656c5 | [log] [tgz] |
---|---|---|
author | Dan Carpenter <dan.carpenter@oracle.com> | Thu Apr 19 13:05:49 2018 +0300 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Fri Apr 20 12:49:24 2018 -0500 |
tree | 697d8ae693e58a9a66597bd04004be907e3886c2 | |
parent | 60cc43fc888428bb2f18f08997432d426a243338 [diff] |
PCI: ibmphp: Fix use-before-set in get_max_bus_speed() The "rc" variable is only initialized on the error path. The caller doesn't check the return but, if "rc" is non-zero, then this function is basically a no-op. Fixes: 3749c51ac6c1 ("PCI: Make current and maximum bus speeds part of the PCI core") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>