commit | ef4993ef41c50ec4dc903e9a77b46de9c3b73901 | [log] [tgz] |
---|---|---|
author | Patrick Venture <venture@google.com> | Mon Jun 24 09:56:37 2019 -0700 |
committer | Patrick Venture <venture@google.com> | Mon Jun 24 09:56:37 2019 -0700 |
tree | 1a4cfcbc4d26d71eb1e2e033b450a8106abebba1 | |
parent | 875258f1da73ff345f66e920e46f14c9d4908c51 [diff] [blame] |
bmc: pci_handler: set pointer to null Set the mapped pointer to null because it actually holds MAP_FAILED and later we check for null, and consistently. Signed-off-by: Patrick Venture <venture@google.com> Change-Id: I6948dbf76c171e4b1a93b1f117e67e8cd2ec856e
diff --git a/pci_handler.cpp b/pci_handler.cpp index ecdafd1..436c63e 100644 --- a/pci_handler.cpp +++ b/pci_handler.cpp
@@ -70,6 +70,7 @@ { sys->close(mappedFd); mappedFd = -1; + mapped = nullptr; return false; }