Uploaded image for project: 'Embedded Software & Tools'
  1. Embedded Software & Tools
  2. EXT_EP-11352

Sciclient_rmIrqDeleteRoute API does not check return status

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Medium Medium
    • PDK
    • PDK-12878
    • NA (Not available)
    • Hide
      PROCESSOR_SDK_08.06.00
      PROCESSOR_SDK_08.02.00
      Show
      PROCESSOR_SDK_08.06.00 PROCESSOR_SDK_08.02.00
    • PROCESSOR_SDK_09.02.00
    • Hide
      j721e-evm
      j7200-evm
      j721s2-evm
      j784s4-evm
      Show
      j721e-evm j7200-evm j721s2-evm j784s4-evm

      Issue Description
      Sciclient_rmIrqDeleteRoute() does not check the return status from Sciclient_rmIrqReleaseRaw() if it is not CSL_PASS.

      For example, if the return status is !CSL_PASS, the function will continue and overwrite the return status in the next iteration of the for-loop. At the end of the function, the return status "r" is returned, even though it has been overwritten at each iteration even in the case of failures.

      1) Are failures expected when calling Sciclient_rmIrqReleaseRaw(), and can be safely ignored?

      2) Is only the last iteration return status important? The function returns "r" for the last Sciclient_rmIrqReleaseRaw() executed. What information does this give the calling function?

       

      Code difference from SDK 8.2 that has been removed:

      if (r != CSL_PASS)

      {                 sci_ridltr = 1; }

      and

      if (r != CSL_PASS)

      {                 sci_ridltr = 2; }

      Workaround:
      NA

            syncuser TI User
            syncuser TI User
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: