Skip to content
Snippets Groups Projects
  1. May 17, 2016
  2. May 16, 2016
  3. May 15, 2016
  4. May 13, 2016
  5. May 12, 2016
  6. May 10, 2016
  7. May 07, 2016
  8. May 06, 2016
    • Peng Fan's avatar
      usb: gadget: dfu: discard dead code · 12ff19db
      Peng Fan authored
      
      Reported by Coverity:
      Logically dead code (DEADCODE)
      dead_error_line: Execution cannot reach this statement:
      (f_dfu->strings + --i).s = ....
      
      If calloc failed, i is still 0 and no need to call free,
      so discard the dead code.
      
      Signed-off-by: default avatarPeng Fan <van.freenix@gmail.com>
      Cc: "Łukasz Majewski" <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      12ff19db
    • Peng Fan's avatar
      dfu: avoid memory leak · 5d8fae79
      Peng Fan authored
      
      When dfu_fill_entity fail, need to free dfu to avoid memory leak.
      
      Reported by Coverity:
      "
      Resource leak (RESOURCE_LEAK)
      leaked_storage: Variable dfu going out of scope leaks the storage
      it points to.
      "
      
      Signed-off-by: default avatarPeng Fan <van.freenix@gmail.com>
      Cc: "Łukasz Majewski" <l.majewski@samsung.com>
      Cc: Marek Vasut <marex@denx.de>
      5d8fae79
Loading