Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 67013
b: refs/heads/master
c: ec93103
h: refs/heads/master
i:
  67011: 18c8ad8
v: v3
  • Loading branch information
Pavel Emelyanov authored and David S. Miller committed Oct 10, 2007
1 parent 40b57d7 commit b33d7af
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 11 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: a662d4cb50d3976d2c9c9bac34119d0036e31d21
refs/heads/master: ec931035194709d0cde647d1c347bbf9634eec25
12 changes: 2 additions & 10 deletions trunk/net/sunrpc/cache.c
Original file line number Diff line number Diff line change
Expand Up @@ -1218,23 +1218,15 @@ static const struct seq_operations cache_content_op = {

static int content_open(struct inode *inode, struct file *file)
{
int res;
struct handle *han;
struct cache_detail *cd = PDE(inode)->data;

han = kmalloc(sizeof(*han), GFP_KERNEL);
han = __seq_open_private(file, &cache_content_op, sizeof(*han));
if (han == NULL)
return -ENOMEM;

han->cd = cd;

res = seq_open(file, &cache_content_op);
if (res)
kfree(han);
else
((struct seq_file *)file->private_data)->private = han;

return res;
return 0;
}

static const struct file_operations content_file_operations = {
Expand Down

0 comments on commit b33d7af

Please sign in to comment.