BZ: 24562
KW cannot detect very well kernel code flow. For 3rd time we receive
same false-positive critical KW issue. This patch will trick KW.
Change-Id: Ibdf97d69284d70a62253f510c4e8af5b6212f446
Signed-off-by: David Cohen <david.a.cohen@intel.com>
Reviewed-on: http://android.intel.com:8080/41327
Reviewed-by: Koskinen, Ilkka <ilkka.koskinen@intel.com>
Tested-by: Koski, Anttu <anttu.koski@intel.com>
Reviewed-by: buildbot <buildbot@intel.com>
Tested-by: buildbot <buildbot@intel.com>
}
/* Find first free slot */
- for (i = 0; i < ATOMISP_ACC_FW_MAX; i++) {
+ for (i = 0; i < ATOMISP_ACC_FW_MAX - 1; i++) {
if (isp->acc_fw[i] == NULL)
break;
}
+ WARN(isp->acc_fw[i] != NULL, "%s: excess of accel fw.\n", __func__);
user_fw->fw_handle = isp->acc_fw_handle;
fw->header.handle = isp->acc_fw_handle;
isp->acc_fw[i] = fw;