Re: [PATCH v2 3/6] drm/i915 Implement LMEM backup and restore for suspend / resume

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi, Matt,

Thanks for reviewing.

On 9/7/21 7:37 PM, Matthew Auld wrote:

+    i915_gem_ww_unlock_single(backup);
+    i915_gem_object_put(backup);

I assume we need to set ttm.backup = NULL somewhere here on the failure path, or don't drop the ref? Or at least it looks like potential uaf later?

Yes, I think on failure, we just don't drop the ref here in case something at some point decides to retry.

I'll fix up this and other comments.

/Thomas



+
+    return err;
+}
+



[Index of Archives]     [Linux DRI Users]     [Linux Intel Graphics]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [XFree86]
  Powered by Linux