Skip to contentSkip to conversation

CONNECTOR: add a missing break in cn_netlink_send()

PATCH In review Li Zefan 1 participant 1 message Jan 4, 2008 Network drivers

lore
Share & tools
lore

Li Zefan

author
#0 lore raw

PATCH 1/5 CONNECTOR: add a missing break in cn_netlink_send()

Each entry in the list has a unique id, so just break out of the loop if the matched id is found.

---
 drivers/connector/connector.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
drivers/connector/connector.c +1 -0
index 6883fcb..6e70963 100644
@@ -88,6 +88,7 @@ int cn_netlink_send(struct cn_msg *msg, u32 __group, gfp_t gfp_mask)
 			if (cn_cb_equal(&__cbq->id.id, &msg->id)) {
 				found = 1;
 				group = __cbq->group;
+				break;
 			}
 		}
 		spin_unlock_bh(&dev->cbdev->queue_lock);
Signature · 1 line
1.5.3.rc7