Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 19327
b: refs/heads/master
c: dab6a42
h: refs/heads/master
i:
  19325: 35eb8c6
  19323: c1d6585
  19319: efb742b
  19311: b21e5ca
  19295: ccd7343
  19263: dcc4f77
  19199: bca27f5
v: v3
  • Loading branch information
Alasdair G Kergon authored and Linus Torvalds committed Feb 1, 2006
1 parent 0469224 commit c004561
Show file tree
Hide file tree
Showing 2 changed files with 5 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: a4fc4717fc55a3bcd3cfdafa285b7af164b83051
refs/heads/master: dab6a42915554f70220e5a2ff55c59c749582c7b
14 changes: 4 additions & 10 deletions trunk/drivers/md/dm-ioctl.c
Original file line number Diff line number Diff line change
Expand Up @@ -1359,16 +1359,11 @@ static int ctl_ioctl(struct inode *inode, struct file *file,
* Copy the parameters into kernel space.
*/
r = copy_params(user, &param);
if (r) {
current->flags &= ~PF_MEMALLOC;
return r;
}

/*
* FIXME: eventually we will remove the PF_MEMALLOC flag
* here. However the tools still do nasty things like
* 'load' while a device is suspended.
*/
current->flags &= ~PF_MEMALLOC;

if (r)
return r;

r = validate_params(cmd, param);
if (r)
Expand All @@ -1386,7 +1381,6 @@ static int ctl_ioctl(struct inode *inode, struct file *file,

out:
free_params(param);
current->flags &= ~PF_MEMALLOC;
return r;
}

Expand Down

0 comments on commit c004561

Please sign in to comment.