Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 100371
b: refs/heads/master
c: 7bcc320
h: refs/heads/master
i:
  100369: 589dc7e
  100367: f0b274d
v: v3
  • Loading branch information
Arnd Bergmann authored and Jonathan Corbet committed Jul 2, 2008
1 parent dcdd0f6 commit 57b60ad
Show file tree
Hide file tree
Showing 2 changed files with 4 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: b7fdf9fdd6457c9ed02099fe82bab92b0b3e291b
refs/heads/master: 7bcc3209be82d69361a944c57caeb548b35c7f04
3 changes: 3 additions & 0 deletions trunk/drivers/sbus/char/openprom.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/slab.h>
#include <linux/smp_lock.h>
#include <linux/string.h>
#include <linux/miscdevice.h>
#include <linux/init.h>
Expand Down Expand Up @@ -689,9 +690,11 @@ static int openprom_open(struct inode * inode, struct file * file)
if (!data)
return -ENOMEM;

lock_kernel();
data->current_node = of_find_node_by_path("/");
data->lastnode = data->current_node;
file->private_data = (void *) data;
unlock_kernel();

return 0;
}
Expand Down

0 comments on commit 57b60ad

Please sign in to comment.