Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 219895
b: refs/heads/master
c: 2d77bb5
h: refs/heads/master
i:
  219893: 23f27a2
  219891: f27c937
  219887: 020be63
v: v3
  • Loading branch information
Sven Eckelmann authored and Greg Kroah-Hartman committed Sep 20, 2010
1 parent caccde9 commit 875efcd
Show file tree
Hide file tree
Showing 3 changed files with 6 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: 93b3d9d57828af928651742086f912af913b6b31
refs/heads/master: 2d77bb592f6cabc5ee5322c03ee92b9f96c45f60
2 changes: 2 additions & 0 deletions trunk/drivers/staging/batman-adv/bat_debugfs.c
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ int debug_log(struct bat_priv *bat_priv, char *fmt, ...)

static int log_open(struct inode *inode, struct file *file)
{
nonseekable_open(inode, file);
file->private_data = inode->i_private;
inc_module_count();
return 0;
Expand Down Expand Up @@ -174,6 +175,7 @@ static const struct file_operations log_fops = {
.release = log_release,
.read = log_read,
.poll = log_poll,
.llseek = no_llseek,
};

static int debug_log_setup(struct bat_priv *bat_priv)
Expand Down
3 changes: 3 additions & 0 deletions trunk/drivers/staging/batman-adv/icmp_socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,8 @@ static int bat_socket_open(struct inode *inode, struct file *file)
unsigned int i;
struct socket_client *socket_client;

nonseekable_open(inode, file);

socket_client = kmalloc(sizeof(struct socket_client), GFP_KERNEL);

if (!socket_client)
Expand Down Expand Up @@ -283,6 +285,7 @@ static const struct file_operations fops = {
.read = bat_socket_read,
.write = bat_socket_write,
.poll = bat_socket_poll,
.llseek = no_llseek,
};

int bat_socket_setup(struct bat_priv *bat_priv)
Expand Down

0 comments on commit 875efcd

Please sign in to comment.