diff options
author | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-05-09 14:18:51 -0700 |
---|---|---|
committer | Antonio Argenziano <antonio.argenziano@intel.com> | 2018-05-09 15:02:31 -0700 |
commit | 35f08c12aa216d5b62a5b9984b575cee6905098f (patch) | |
tree | 48c9fae21886bff7dbc9b7783c4039689329f863 /tests/gem_busy.c | |
parent | cffe915716f02ecd7561bdd1fa252b8a077abeda (diff) |
lib/igt_dummyload: Fix possible NULL pointer dereference
Make sure that at least one of the 'mmap' functions returns a valid pointer to
avoid dereferencing a NULL pointer later on. (Issue found via coverity)
v2:
- Use the version of the mapping function that will assert on fail
(Chris).
Signed-off-by: Antonio Argenziano <antonio.argenziano@intel.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Diffstat (limited to 'tests/gem_busy.c')
0 files changed, 0 insertions, 0 deletions