In the Linux kernel, the following vulnerability has been resolved: drm/xe/queue: Call fini on exec queue creation fail Every call to queue init should have a corresponding fini call. Skipping this would mean skipping removal of the queue from GuC list (which is part of gucid allocation). A damaged queue stored in execqueuelookup list would lead to invalid memory reference, sooner or later. Call fini to free gucid. This must be done before any internal LRCs are freed. Since the finalization with this extra call became very similar to _xeexecqueuefini(), reuse that. To make this reuse possible, alter xelrcput() so it can survive NULL parameters, like other similar functions. v2: Reuse xeexecqueuefini(). Make xelrcput() aware of NULLs. (cherry picked from commit 393e5fea6f7d7054abc2c3d97a4cfe8306cd6079)