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

Commit 11b0d064 authored by Preetam Singh Ranawat's avatar Preetam Singh Ranawat Committed by Michael Bestas
Browse files

hal : Fix data initialization and input validation errors

 Initialize uninitialized variables and add null check to
 avoid following errors

 119251, 119255, 119256, 119257, 119258
 144012, 913366, 119249, 119250, 58938

Change-Id: I09d35977c9c3abf5819d5c72506c8d157158e212
parent f599daf9
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -416,6 +416,7 @@ static int spkr_calibrate(int t0_spk_1, int t0_spk_2)
    struct timespec ts;
    bool acquire_device = false;

    status.status = 0;
    if (!adev) {
        ALOGE("%s: Invalid params", __func__);
        return -EINVAL;
+1 −1
Original line number Diff line number Diff line
@@ -286,7 +286,7 @@ exit:
__attribute__ ((visibility ("default")))
int offload_effects_bundle_hal_stop_output(audio_io_handle_t output, int pcm_id)
{
    int ret;
    int ret = -1;
    struct listnode *node;
    struct listnode *fx_node;
    output_context_t *out_ctxt;