Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 115025
b: refs/heads/master
c: 33c0360
h: refs/heads/master
i:
  115023: bfe726b
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed Oct 15, 2008
1 parent bfe9653 commit fa186df
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 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: c74e90a9e37c4a3923905189a6ebbd7ef61e6e67
refs/heads/master: 33c0360bf74d5fded34cb08d3512ada32ad661e4
5 changes: 4 additions & 1 deletion trunk/net/wireless/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,8 @@ int cfg80211_dev_rename(struct cfg80211_registered_device *rdev,
if (result)
goto out_unlock;

if (!debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
if (rdev->wiphy.debugfsdir &&
!debugfs_rename(rdev->wiphy.debugfsdir->d_parent,
rdev->wiphy.debugfsdir,
rdev->wiphy.debugfsdir->d_parent,
newname))
Expand Down Expand Up @@ -317,6 +318,8 @@ int wiphy_register(struct wiphy *wiphy)
drv->wiphy.debugfsdir =
debugfs_create_dir(wiphy_name(&drv->wiphy),
ieee80211_debugfs_dir);
if (IS_ERR(drv->wiphy.debugfsdir))
drv->wiphy.debugfsdir = NULL;

res = 0;
out_unlock:
Expand Down

0 comments on commit fa186df

Please sign in to comment.