Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 150284
b: refs/heads/master
c: 7be69c0
h: refs/heads/master
v: v3
  • Loading branch information
Johannes Berg authored and John W. Linville committed May 11, 2009
1 parent cc71e84 commit 19ff0b9
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 5 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: e80cf8537ae54ec96c389055d6e9b0ef630c042d
refs/heads/master: 7be69c0b9aa93ef655db4d46e5654996489d62f5
22 changes: 18 additions & 4 deletions trunk/net/wireless/wext.c
Original file line number Diff line number Diff line change
Expand Up @@ -649,22 +649,36 @@ static int wireless_seq_show(struct seq_file *seq, void *v)
return 0;
}

static void *wireless_dev_seq_start(struct seq_file *seq, loff_t *pos)
__acquires(dev_base_lock)
{
rtnl_lock();
return dev_seq_start(seq, pos);
}

static void wireless_dev_seq_stop(struct seq_file *seq, void *v)
__releases(dev_base_lock)
{
dev_seq_stop(seq, v);
rtnl_unlock();
}

static const struct seq_operations wireless_seq_ops = {
.start = dev_seq_start,
.start = wireless_dev_seq_start,
.next = dev_seq_next,
.stop = dev_seq_stop,
.stop = wireless_dev_seq_stop,
.show = wireless_seq_show,
};

static int wireless_seq_open(struct inode *inode, struct file *file)
static int seq_open_wireless(struct inode *inode, struct file *file)
{
return seq_open_net(inode, file, &wireless_seq_ops,
sizeof(struct seq_net_private));
}

static const struct file_operations wireless_seq_fops = {
.owner = THIS_MODULE,
.open = wireless_seq_open,
.open = seq_open_wireless,
.read = seq_read,
.llseek = seq_lseek,
.release = seq_release_net,
Expand Down

0 comments on commit 19ff0b9

Please sign in to comment.