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

Commit a610358a authored by qctecmdr's avatar qctecmdr Committed by Gerrit - the friendly Code Review server
Browse files

Merge "hal: kw fix for address pntr check in auto hal"

parents 21d9894d 8987cd7a
Loading
Loading
Loading
Loading
+10 −10
Original line number Diff line number Diff line
@@ -158,11 +158,11 @@ int auto_hal_create_audio_patch(struct audio_hw_device *dev,
                                                sources->ext.device.address);
        } else {
            address = (char *)calloc(1, 1);
        }
        if (address == NULL) {
            ALOGE("%s: failed to get address",__func__);
            ret = -EFAULT;
                goto error;
            }
            goto exit;
        }
        parms = str_parms_create_str(address);
        if (!parms) {
@@ -197,11 +197,11 @@ int auto_hal_create_audio_patch(struct audio_hw_device *dev,
                                                sinks->ext.device.address);
        } else {
            address = (char *)calloc(1, 1);
        }
        if (address == NULL) {
            ALOGE("%s: failed to get address",__func__);
            ret = -EFAULT;
                goto error;
            }
            goto exit;
        }
        parms = str_parms_create_str(address);
        if (!parms) {