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

Commit fd00eecc authored by Li Zefan's avatar Li Zefan Committed by David S. Miller
Browse files

[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.

Signed-off-by: default avatarLi Zefan <lizf@cn.fujitsu.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74feb6e8
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -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)) {
			if (cn_cb_equal(&__cbq->id.id, &msg->id)) {
				found = 1;
				found = 1;
				group = __cbq->group;
				group = __cbq->group;
				break;
			}
			}
		}
		}
		spin_unlock_bh(&dev->cbdev->queue_lock);
		spin_unlock_bh(&dev->cbdev->queue_lock);