hwc: clear cached gscaler info after failed allocation
Prevents next allocation attempt from "re-using" NULL pointers
Change-Id: I380c37317a82fdead09ad48c7836ce0e795ee80d
Signed-off-by: Greg Hackmann <ghackmann@google.com>
diff --git a/libhwc/hwc.cpp b/libhwc/hwc.cpp
index 271542d..1281265 100644
--- a/libhwc/hwc.cpp
+++ b/libhwc/hwc.cpp
@@ -1072,6 +1072,8 @@
gsc_data->dst_buf[i] = NULL;
}
}
+ memset(&gsc_data->src_cfg, 0, sizeof(gsc_data->src_cfg));
+ memset(&gsc_data->dst_cfg, 0, sizeof(gsc_data->dst_cfg));
return ret;
}