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

Commit 164f3681 authored by Tomasz Wasilczyk's avatar Tomasz Wasilczyk
Browse files

Fix uninitialized pointer dereference when loading default radio module.

Test: manual
Change-Id: I6ea492536cabc2574dfc9113ca599865d578fbfe
parent a0c1eb86
Loading
Loading
Loading
Loading
+3 −2
Original line number Diff line number Diff line
@@ -84,10 +84,11 @@ void RadioService::onFirstRef()
    radio_properties_t properties;
    properties.handle =
            (radio_handle_t)android_atomic_inc(&mNextUniqueId);
    convertProperties(&properties, &halProperties);

    ALOGI("loaded default module %s, handle %d", properties.product, properties.handle);
    ALOGI("loaded default module %s, ver %s, handle %d", properties.product,
        properties.version, properties.handle);

    convertProperties(&properties, &halProperties);
    sp<Module> module = new Module(dev, properties);
    mModules.add(properties.handle, module);
}