Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 232844
b: refs/heads/master
c: 1181e1d
h: refs/heads/master
v: v3
  • Loading branch information
Sven Eckelmann committed Jan 30, 2011
1 parent 26afb21 commit e59b4f1
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: dda9fc6b2c59f056e7a2b313b8423b14a4df25a9
refs/heads/master: 1181e1daace88018b2ff66592aa10a4791d705ff
7 changes: 4 additions & 3 deletions trunk/net/batman-adv/vis.c
Original file line number Diff line number Diff line change
Expand Up @@ -816,7 +816,7 @@ static void send_vis_packets(struct work_struct *work)
container_of(work, struct delayed_work, work);
struct bat_priv *bat_priv =
container_of(delayed_work, struct bat_priv, vis_work);
struct vis_info *info, *temp;
struct vis_info *info;

spin_lock_bh(&bat_priv->vis_hash_lock);
purge_vis_packets(bat_priv);
Expand All @@ -826,8 +826,9 @@ static void send_vis_packets(struct work_struct *work)
send_list_add(bat_priv, bat_priv->my_vis_info);
}

list_for_each_entry_safe(info, temp, &bat_priv->vis_send_list,
send_list) {
while (!list_empty(&bat_priv->vis_send_list)) {
info = list_first_entry(&bat_priv->vis_send_list,
typeof(*info), send_list);

kref_get(&info->refcount);
spin_unlock_bh(&bat_priv->vis_hash_lock);
Expand Down

0 comments on commit e59b4f1

Please sign in to comment.