aboutsummaryrefslogtreecommitdiff
path: root/lib/mpi/mpiutil.c
diff options
context:
space:
mode:
authorAlexandre Courbot <[email protected]>2015-09-03 17:39:52 +0900
committerBen Skeggs <[email protected]>2015-11-03 15:02:18 +1000
commit579b7c58215329803ce184704463de09f0f310ac (patch)
tree0ee81f66fad2db795dd124201aca12a84e335c22 /lib/mpi/mpiutil.c
parent04b8a4bd8e01e25b9fa9fa7b1c957a7346ae83c1 (diff)
drm/nouveau/pmu: do not assume a PMU is present
Some devices may not have a PMU. Avoid a NULL pointer dereference in such cases by checking whether the pointer given to nvkm_pmu_pgob() is valid. Signed-off-by: Alexandre Courbot <[email protected]> Signed-off-by: Ben Skeggs <[email protected]>
Diffstat (limited to 'lib/mpi/mpiutil.c')
0 files changed, 0 insertions, 0 deletions