mbox series

[v2,0/5] media: amphion: fix some issues reported by coverity

Message ID cover.1689673395.git.ming.qian@nxp.com
Headers show
Series media: amphion: fix some issues reported by coverity | expand

Message

Ming Qian July 18, 2023, 9:50 a.m. UTC
Coverity is a proprietary static code analysis tool from Synopsys.
And the coverity scan report some issues about amphion vpu driver,

CHECKED_RETURN: 4 case
REVERSE_INULL: 2 case
UNINIT: 6 case
UNUSED_VALUE: 1 case

Ming Qian (5):
  media: amphion: fix CHECKED_RETURN issues reported by coverity
  media: amphion: fix REVERSE_INULL issues reported by coverity
  media: amphion: fix UNINIT issues reported by coverity
  media: amphion: fix UNUSED_VALUE issue reported by coverity
  media: amphion: ensure the bitops don't cross boundaries

 drivers/media/platform/amphion/vdec.c     |  5 ++++-
 drivers/media/platform/amphion/venc.c     |  6 ++++--
 drivers/media/platform/amphion/vpu_cmds.c |  5 +++--
 drivers/media/platform/amphion/vpu_core.c |  2 ++
 drivers/media/platform/amphion/vpu_dbg.c  | 11 +++++++++--
 drivers/media/platform/amphion/vpu_msgs.c | 12 ++++++------
 6 files changed, 28 insertions(+), 13 deletions(-)