diff options
author | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2017-10-17 18:09:08 +0300 |
---|---|---|
committer | Tvrtko Ursulin <tvrtko.ursulin@intel.com> | 2017-10-18 11:25:39 +0300 |
commit | cb8d50dfb341e9615c8d203a3e6513dae9ff901d (patch) | |
tree | 0c1d9aa4c26c37fed29ce5e98030105b2742c2ce /fs/block_dev.c | |
parent | 930a784d02339be437fec07b3bb7213bde0ed53b (diff) | |
download | linux-cb8d50dfb341e9615c8d203a3e6513dae9ff901d.tar.xz |
drm/i915: Fixup userptr mmu notifier registration error handling
Avoid dereferencing the error pointer and also avoid returning NULL
from i915_mmu_notifier_find since the callers do not expect that.
Signed-off-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Fixes: 7741b547b6e0 ("drm/i915: Preallocate our mmu notifier workequeu to unbreak cpu hotplug deadlock")
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Chris Wilson <chris@chris-wilson.co.uk>
Cc: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Cc: Joonas Lahtinen <joonas.lahtinen@linux.intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
Link: https://patchwork.freedesktop.org/patch/msgid/20171017150908.12840-1-tvrtko.ursulin@linux.intel.com
Diffstat (limited to 'fs/block_dev.c')
0 files changed, 0 insertions, 0 deletions