Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 54264
b: refs/heads/master
c: 1525a2a
h: refs/heads/master
v: v3
  • Loading branch information
Rafael J. Wysocki authored and Linus Torvalds committed May 7, 2007
1 parent 6d1d611 commit 1ead20c
Show file tree
Hide file tree
Showing 2 changed files with 7 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: 04293355ac9dbe81bd01b89ca2adb58be34c2c60
refs/heads/master: 1525a2ad76f991eba9755f75c9b6d4d97abad25e
10 changes: 6 additions & 4 deletions trunk/kernel/power/user.c
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ static int snapshot_open(struct inode *inode, struct file *filp)
if (!atomic_add_unless(&device_available, -1, 0))
return -EBUSY;

if ((filp->f_flags & O_ACCMODE) == O_RDWR)
if ((filp->f_flags & O_ACCMODE) == O_RDWR) {
atomic_inc(&device_available);
return -ENOSYS;

if(create_basic_memory_bitmaps())
}
if(create_basic_memory_bitmaps()) {
atomic_inc(&device_available);
return -ENOMEM;

}
nonseekable_open(inode, filp);
data = &snapshot_state;
filp->private_data = data;
Expand Down

0 comments on commit 1ead20c

Please sign in to comment.