Skip to content

Some issues found with Klockwork

Martin Peres intel-gfx 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest7 patches 15 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/7device: prevent a NULL pointer dereference in __intel_peek_fdsrc/intel_device.c+4 -19 replies
2/7display: prevent a NULL pointer dereference in intel_set_scanout_pixmapsrc/uxa/intel_display.c+5 -01 reply
3/7sna: check for NULL before dereferencing a pointersrc/sna/sna_accel.c+2 -11 reply
4/7sna: assert a pointer is non-NULL before dereferencing itsrc/sna/sna_accel.c+1 -01 reply
5/7sna/cursor: add an assert on cursor->imagesrc/sna/sna_display.c+2 -11 reply
6/7sna_video_sprite: add asserts to catch invalid pipe#src/sna/sna_video_sprite.c+3 -01 reply
7/7sna: add an assert in the lengthy sna_drawable_use_bosrc/sna/sna_accel.c+1 -01 reply

Reviews trailers per patch

1 of 7 patches has a Reviewed-by or Acked-by.

PatchChris Wilson
1/7
2/7
3/7
4/7
5/7
6/7R-b
7/7

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH DDX 0/7] Some issues found with Klockwork

The DDX clearly is making Klockwork unhappy but I found those potential issues. Let's use them as a basis for discussion on the real code that should be written.

Martin Peres (7):
device: prevent a NULL pointer dereference in __intel_peek_fd
display: prevent a NULL pointer dereference in
intel_set_scanout_pixmap
sna: check for NULL before dereferencing a pointer
sna: assert a pointer is non-NULL before dereferencing it sna/cursor: add an assert on cursor->image
sna_video_sprite: add asserts to catch invalid pipe#
sna: add an assert in the lengthy sna_drawable_use_bo

 src/intel_device.c         | 5 ++++-
 src/sna/sna_accel.c        | 5 ++++-
 src/sna/sna_display.c      | 3 ++-
 src/sna/sna_video_sprite.c | 3 +++
 src/uxa/intel_display.c    | 5 +++++
 5 files changed, 18 insertions(+), 3 deletions(-)
Signature · 6 lines
2.7.1

_______________________________________________
Intel-gfx mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/intel-gfx