Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit edbe43c0 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "msm: adsprpc: destroy mutex before file free"

parents 52f31593 1e74efda
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1858,6 +1858,7 @@ static int fastrpc_file_free(struct fastrpc_file *fl)
	if (fl->ssrcount == fl->apps->channel[cid].ssrcount)
		kref_put_mutex(&fl->apps->channel[cid].kref,
				fastrpc_channel_close, &fl->apps->smd_mutex);
	mutex_destroy(&fl->map_mutex);
	kfree(fl);
	return 0;
}
@@ -2011,7 +2012,6 @@ static int fastrpc_device_release(struct inode *inode, struct file *file)
		}
		me->pending_free++;
		mutex_unlock(&me->flfree_mutex);
		mutex_destroy(&fl->map_mutex);
		file->private_data = NULL;
	}
bail: