Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219903
b: refs/heads/master
c: 7e8158b
h: refs/heads/master
i:
  219901: 9ea5fdd
  219899: 021d018
  219895: 875efcd
  219887: 020be63
  219871: c3d369b
  219839: 4ea709f
  219775: 9137fd0
  219647: 991ee1a
v: v3
  • Loading branch information
Sven Eckelmann authored and Greg Kroah-Hartman committed Sep 20, 2010
1 parent 950e21c commit 6154a6d
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 399fb5b445370ddcc93221e339d02736f55b9bb8
refs/heads/master: 7e8158b341b2b043047b6f570c343fd9b0efd9c9
8 changes: 8 additions & 0 deletions trunk/drivers/staging/batman-adv/hard-interface.c
Original file line number Diff line number Diff line change
Expand Up @@ -111,9 +111,17 @@ static void set_primary_if(struct bat_priv *bat_priv,
{
struct batman_packet *batman_packet;
struct vis_packet *vis_packet;
struct batman_if *old_if;

if (batman_if)
hardif_hold(batman_if);

old_if = bat_priv->primary_if;
bat_priv->primary_if = batman_if;

if (old_if)
hardif_put(old_if);

if (!bat_priv->primary_if)
return;

Expand Down

0 comments on commit 6154a6d

Please sign in to comment.