Skip to contentSkip to conversation

ipc-msg-add-missing-annotation-for-freeque.patch removed from -mm tree

merged [email protected] 1 participant 1 message Jun 8, 2020

lore
Share & tools
lore

[email protected]

author tree notice Applied
#0 lore raw

The patch titled
Subject: ipc/msg: add missing annotation for freeque()
has been removed from the -mm tree. Its filename was
ipc-msg-add-missing-annotation-for-freeque.patch

This patch was dropped because it was merged into mainline or a subsystem tree

------------------------------------------------------
From: Jules Irenge <[email protected]>
Subject: ipc/msg: add missing annotation for freeque()

Sparse reports a warning at freeque()

warning: context imbalance in freeque() - unexpected unlock

The root cause is the missing annotation at freeque()

Add the missing __releases(RCU) annotation Add the missing __releases(&msq->q_perm) annotation

---

 ipc/msg.c |    2 ++
 1 file changed, 2 insertions(+)
ipc/msg.c renamed from ipc/msg.c~ipc-msg-add-missing-annotation-for-freeque +2 -0
@@ -268,6 +268,8 @@ static void expunge_all(struct msg_queue
  * before freeque() is called. msg_ids.rwsem remains locked on exit.
  */
 static void freeque(struct ipc_namespace *ns, struct kern_ipc_perm *ipcp)
+	__releases(RCU)
+	__releases(&msq->q_perm)
 {
 	struct msg_msg *msg, *t;
 	struct msg_queue *msq = container_of(ipcp, struct msg_queue, q_perm);

_

Patches currently in -mm which might be from [email protected] are