Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 286597
b: refs/heads/master
c: 2a4e64b
h: refs/heads/master
i:
  286595: 828b5b3
v: v3
  • Loading branch information
Davidlohr Bueso authored and Linus Torvalds committed Jan 23, 2012
1 parent cc3de8d commit 2acb782
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 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: e9a4593cc5e36c6d47c87b439cb41c2568e7395f
refs/heads/master: 2a4e64b8f6bcbf23ddd375b78342051ae8862284
3 changes: 1 addition & 2 deletions trunk/ipc/mqueue.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,6 @@ static struct inode *mqueue_get_inode(struct super_block *sb,

if (S_ISREG(mode)) {
struct mqueue_inode_info *info;
struct task_struct *p = current;
unsigned long mq_bytes, mq_msg_tblsz;

inode->i_fop = &mqueue_file_operations;
Expand Down Expand Up @@ -159,7 +158,7 @@ static struct inode *mqueue_get_inode(struct super_block *sb,

spin_lock(&mq_lock);
if (u->mq_bytes + mq_bytes < u->mq_bytes ||
u->mq_bytes + mq_bytes > task_rlimit(p, RLIMIT_MSGQUEUE)) {
u->mq_bytes + mq_bytes > rlimit(RLIMIT_MSGQUEUE)) {
spin_unlock(&mq_lock);
/* mqueue_evict_inode() releases info->messages */
ret = -EMFILE;
Expand Down

0 comments on commit 2acb782

Please sign in to comment.