Skip to content

Conversation

@jailuthra
Copy link
Contributor

Fix these two smatch warnings for the vc-sm-cma driver, rest were false positives:

../vc-sm-cma/vc_sm.c:413
vc_sm_dma_buf_attach() warn: inconsistent returns '&buf->lock'.
Locked on : 396
Unlocked on: 413
../vc-sm-cma/vc_sm.c:1225
vc_sm_cma_ioctl_alloc() error: we previously assumed 'buffer' could be null (see line 1113)

This change is also posted upstream, squashed into the commit introducing support for vc-sm-cma driver:
https://lore.kernel.org/all/[email protected]/T/#t

Fix these two smatch warnings for the vc-sm-cma driver, rest were false
positives:

../vc-sm-cma/vc_sm.c:413
vc_sm_dma_buf_attach() warn: inconsistent returns '&buf->lock'.
  Locked on  : 396
  Unlocked on: 413
../vc-sm-cma/vc_sm.c:1225
vc_sm_cma_ioctl_alloc() error: we previously assumed 'buffer' could be
null (see line 1113)

Signed-off-by: Jai Luthra <[email protected]>
@pelwell pelwell merged commit 203ead2 into raspberrypi:rpi-6.12.y Nov 3, 2025
11 of 12 checks passed
popcornmix added a commit to raspberrypi/firmware that referenced this pull request Nov 4, 2025
kernel: drm/vc4: plane: Swap Cb/Cr pointers for YVU formats
See: raspberrypi/linux#7122

kernel: drm/vc4: plane: Swap Cb/Cr offsets for YVU formats
See: raspberrypi/linux#7124

kernel: media: imx477: Increase IMX477_VBLANK_MIN due to image corruption
See: raspberrypi/linux#7114

kernel: staging: vc04_services: vc-sm-cma: Fix smatch warnings
See: raspberrypi/linux#7116
popcornmix added a commit to raspberrypi/rpi-firmware that referenced this pull request Nov 4, 2025
kernel: drm/vc4: plane: Swap Cb/Cr pointers for YVU formats
See: raspberrypi/linux#7122

kernel: drm/vc4: plane: Swap Cb/Cr offsets for YVU formats
See: raspberrypi/linux#7124

kernel: media: imx477: Increase IMX477_VBLANK_MIN due to image corruption
See: raspberrypi/linux#7114

kernel: staging: vc04_services: vc-sm-cma: Fix smatch warnings
See: raspberrypi/linux#7116
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants