mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/herbert/cryptodev-2.6.git
synced 2026-04-23 05:56:14 -04:00
drm/xe: Ensure mutex are destroyed
Add missing mutex_destroy calls to fini functions or convert to drmm_mutex_init where fini function is not available. Cc: Matthew Brost <matthew.brost@intel.com> Signed-off-by: Bommithi Sakeena <bommithi.sakeena@intel.com> Reviewed-by: Niranjana Vishwanathapura <niranjana.vishwanathapura@intel.com> Signed-off-by: Rodrigo Vivi <rodrigo.vivi@intel.com>
This commit is contained in:
committed by
Rodrigo Vivi
parent
5349bb76d6
commit
28b1d9155c
@@ -8,6 +8,8 @@
|
||||
#include <linux/delay.h>
|
||||
#include <linux/errno.h>
|
||||
|
||||
#include <drm/drm_managed.h>
|
||||
|
||||
#include "xe_gt.h"
|
||||
#include "xe_mmio.h"
|
||||
#include "xe_pcode_api.h"
|
||||
@@ -276,7 +278,7 @@ int xe_pcode_init(struct xe_gt *gt)
|
||||
*/
|
||||
int xe_pcode_probe(struct xe_gt *gt)
|
||||
{
|
||||
mutex_init(>->pcode.lock);
|
||||
drmm_mutex_init(>_to_xe(gt)->drm, >->pcode.lock);
|
||||
|
||||
if (!IS_DGFX(gt_to_xe(gt)))
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user