mbox series

[BlueZ,0/9] Fix unchecked return value

Message ID 20211018172833.534191-1-hj.tedd.an@gmail.com (mailing list archive)
Headers show
Series Fix unchecked return value | expand

Message

Tedd Ho-Jeong An Oct. 18, 2021, 5:28 p.m. UTC
From: Tedd Ho-Jeong An <tedd.an@intel.com>

This patch series fixes the unchecked return value(CWE-252) issues
reported by the Coverity scan.

The idea is to make the change as simple as possible without changing
the functional flow. So, it logs the output when the function fails
after checking the return value.

Tedd Ho-Jeong An (9):
  device: Fix unchecked return value
  adapter: Fix unchecked return value
  attrib-server: Fix unchecked return value
  plugins/admin: Fix unchecked return value
  profiles/a2dp: Fix unchecked return value
  profiles/input: Fix unchecked return value
  mesh: Fix unchecked return value
  obexd: Fix unchecked return value
  peripheral: Fix unchecked return value

 mesh/keyring.c          |   6 +-
 mesh/mesh-io-unit.c     |   6 +-
 mesh/rpl.c              |  22 ++--
 mesh/util.c             |  11 +-
 obexd/client/transfer.c |  12 +-
 obexd/plugins/pcsuite.c |   4 +-
 obexd/src/main.c        |   4 +-
 peripheral/main.c       |   3 +-
 plugins/admin.c         |  15 ++-
 profiles/audio/a2dp.c   |  33 +++++-
 profiles/input/device.c |   6 +-
 src/adapter.c           | 249 ++++++++++++++++++++++++++++++++++------
 src/attrib-server.c     |  21 +++-
 src/device.c            | 141 +++++++++++++++++++----
 14 files changed, 441 insertions(+), 92 deletions(-)