Skip to content

media: fix smatch warnings

Hans Verkuil linux-media 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest9 patches 17 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/9staging: media: atomisp: drop check for reentrant .s_stream()drivers/staging/media/atomisp/i2c/atomisp-gc0310.c+0 -61 reply
2/9media: i2c: adp1653: don't reuse the same node pointerdrivers/media/i2c/adp1653.c+15 -131 reply
3/9staging: media: atomisp: improve unwindingdrivers/staging/media/atomisp/pci/atomisp_cmd.c+12 -61 reply
4/9media: dvb-usb-v2: af9035: fix missing unlockdrivers/media/usb/dvb-usb-v2/af9035.c+9 -41 reply
5/9media: nxp: imx-jpeg: use goto instead of returndrivers/media/platform/nxp/imx-jpeg/mxc-jpeg.c+1 -10 replies
6/9media: qcom: venus: fix incorrect return valuedrivers/media/platform/qcom/venus/pm_helpers.c+1 -11 reply
7/9media: i2c: tc358746: check fmt validitydrivers/media/i2c/tc358746.c+5 -11 reply
8/9media: i2c: mt9m114: goto proper error pathdrivers/media/i2c/mt9m114.c+2 -26 replies
9/9media: pci: mgb4: fix potential spectre vulnerabilitydrivers/media/pci/mgb4/mgb4_sysfs_out.c+4 -15 replies

Reviews trailers per patch

6 of 9 patches have a Reviewed-by or Acked-by.

PatchBryan O'DonoghueHans de GoedeSakari AilusMartin Tůma
1/9R-b
2/9A-b
3/9R-b
4/9
5/9
6/9R-b
7/9R-b
8/9
9/9R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes. Scroll the table sideways for all 4 reviewers.

Read the v1 thread

Cover letter [PATCH 0/9] media: fix smatch warnings

This series fixes various smatch warnings. The build scripts didn't call smatch with the -p=kernel option, so some warnings were disabled. After fixing that new warnings appeared that are fixed in this series.

A few warnings remain for false positives that would be very painful to fix, and those are filtered by the build script so that they don't pollute the output.

Note that the adp1653 patch is a v2 of the first attempt:

https://patchwork.linuxtv.org/project/linux-media/patch/[email protected]/

I incorporated Sakari's suggestions in the v2.

Regards,

Hans

Hans Verkuil (9):
staging: media: atomisp: drop check for reentrant .s_stream()
media: i2c: adp1653: don't reuse the same node pointer
staging: media: atomisp: improve unwinding
media: dvb-usb-v2: af9035: fix missing unlock
media: nxp: imx-jpeg: use goto instead of return
media: qcom: venus: fix incorrect return value
media: i2c: tc358746: check fmt validity
media: i2c: mt9m114: goto proper error path
media: pci: mgb4: fix potential spectre vulnerability

 drivers/media/i2c/adp1653.c                   | 28 ++++++++++---------
 drivers/media/i2c/mt9m114.c                   |  4 +--
 drivers/media/i2c/tc358746.c                  |  6 +++-
 drivers/media/pci/mgb4/mgb4_sysfs_out.c       |  5 +++-
 .../media/platform/nxp/imx-jpeg/mxc-jpeg.c    |  2 +-
 .../media/platform/qcom/venus/pm_helpers.c    |  2 +-
 drivers/media/usb/dvb-usb-v2/af9035.c         | 13 ++++++---
 .../media/atomisp/i2c/atomisp-gc0310.c        |  6 ----
 .../staging/media/atomisp/pci/atomisp_cmd.c   | 18 ++++++++----
 9 files changed, 49 insertions(+), 35 deletions(-)
Signature · 1 line
2.40.1