Message ID | CANq1E4TrCvYzVV6GxrKhQs8oqGCcBpj3MfGr+yVSTCjdvVK7BQ@mail.gmail.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/drivers/gpu/drm/ttm/ttm_object.c b/drivers/gpu/drm/ttm/ttm_object.c index 58a5f32..6b7f7b7 100644 --- a/drivers/gpu/drm/ttm/ttm_object.c +++ b/drivers/gpu/drm/ttm/ttm_object.c @@ -228,7 +228,10 @@ struct ttm_base_object *ttm_base_object_lookup(struct ttm_object_file *tfile, if (likely(ret == 0)) { base = drm_hash_entry(hash, struct ttm_base_object, hash); ret = kref_get_unless_zero(&base->refcount) ? 0 : -EINVAL; + } else { + ret = -EINVAL; } + rcu_read_unlock();