Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fef908e5 authored by Andres Morales's avatar Andres Morales
Browse files

[gatekeeperd] fix use of uninitialized memory

Bug: 22319772
Change-Id: I3cb83389f11e54867aca132de48a3f6407b7eaf3
parent 4dd2982d
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -50,6 +50,8 @@ class GateKeeperProxy : public BnGateKeeperService {
public:
    GateKeeperProxy() {
        int ret = hw_get_module_by_class(GATEKEEPER_HARDWARE_MODULE_ID, NULL, &module);
        device = NULL;

        if (ret < 0) {
            ALOGW("falling back to software GateKeeper");
            soft_device.reset(new SoftGateKeeperDevice());