Skip to content

Commit

Permalink
[CONNECTOR]: add a missing break in cn_netlink_send()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Li Zefan authored and David S. Miller committed Jan 28, 2008
1 parent 74feb6e commit fd00eec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/connector/connector.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit fd00eec

Please sign in to comment.