wigig: Fixing static analysis warnings
Fixing static analysis warnings in legacy device access code and host_manager_11ad.
Change-Id: I9fcc2664e9495e02444465cb75ccd59d1fab4071
Signed-off-by: Vadim Iosevich <vadimi@codeaurora.org>
diff --git a/debug-tools/remoteserver/cmdiface.cpp b/debug-tools/remoteserver/cmdiface.cpp
index 9c03471..b00c2d0 100644
--- a/debug-tools/remoteserver/cmdiface.cpp
+++ b/debug-tools/remoteserver/cmdiface.cpp
@@ -373,6 +373,13 @@
}
unsigned int *val = new unsigned int[num_regs];
+
+ if (!val)
+ {
+ m_Reply = "0xDEADDEAD\r\n";
+ return 0;
+ }
+
int rc = readBlock(handler, address, num_regs*sizeof(unsigned int), (char*)val);
if (rc == 0)