summaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/surface_dtx.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/platform/surface/surface_dtx.c')
-rw-r--r--drivers/platform/surface/surface_dtx.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/platform/surface/surface_dtx.c b/drivers/platform/surface/surface_dtx.c
index 5d9b758a99bb..1203b9a82993 100644
--- a/drivers/platform/surface/surface_dtx.c
+++ b/drivers/platform/surface/surface_dtx.c
@@ -427,6 +427,7 @@ static int surface_dtx_open(struct inode *inode, struct file *file)
*/
if (test_bit(SDTX_DEVICE_SHUTDOWN_BIT, &ddev->flags)) {
up_write(&ddev->client_lock);
+ mutex_destroy(&client->read_lock);
sdtx_device_put(client->ddev);
kfree(client);
return -ENODEV;