[CONNECTOR]: add a missing break in cn_netlink_send()
authorLi Zefan <lizf@cn.fujitsu.com>
Fri, 4 Jan 2008 09:54:38 +0000 (01:54 -0800)
committerDavid S. Miller <davem@davemloft.net>
Mon, 28 Jan 2008 23:00:37 +0000 (15:00 -0800)
Each entry in the list has a unique id, so just break out of the
loop if the matched id is found.

Signed-off-by: Li Zefan <lizf@cn.fujitsu.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c

index bf9716b75513d957a79e8836d8a127295d86f4d4..edf1349c4e1fdd827b7b78a6e475008481df6c5e 100644 (file)
@@ -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);