Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 341983
b: refs/heads/master
c: b629ea3
h: refs/heads/master
i:
  341981: 88b532a
  341979: 3fe6140
  341975: a42add4
  341967: c729527
  341951: b92d3ee
v: v3
  • Loading branch information
Johannes Berg committed Nov 30, 2012
1 parent fdc4031 commit bb058b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: 41e31b8b902397d5d507b275050fcbe8adaf4ff4
refs/heads/master: b629ea3db4c0da4465ffa532914e4a3081f93cdf
6 changes: 4 additions & 2 deletions trunk/net/wireless/scan.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,10 @@ static void bss_release(struct kref *ref)
struct cfg80211_internal_bss *bss;

bss = container_of(ref, struct cfg80211_internal_bss, ref);

if (WARN_ON(atomic_read(&bss->hold)))
return;

if (bss->pub.free_priv)
bss->pub.free_priv(&bss->pub);

Expand All @@ -34,8 +38,6 @@ static void bss_release(struct kref *ref)
if (bss->proberesp_ies_allocated)
kfree(bss->pub.proberesp_ies);

BUG_ON(atomic_read(&bss->hold));

kfree(bss);
}

Expand Down

0 comments on commit bb058b9

Please sign in to comment.