int edid_get_max_channels(struct audio_device *adev)
{
 int max_channels = 2;
 struct mixer_ctl *ctl;
 (void)adev;

 /* TODO */
 return max_channels;
}

The product reads data past the end, or before the beginning, of the intended buffer.