Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 348272
b: refs/heads/master
c: b30efe2
h: refs/heads/master
v: v3
  • Loading branch information
Stanislav Kinsbursky authored and Linus Torvalds committed Jan 5, 2013
1 parent 1ddca6c commit 25f0830
Show file tree
Hide file tree
Showing 2 changed files with 10 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: 85398aa8de1d68f44ff1b5d0ed9ceb2b0c51ce49
refs/heads/master: b30efe2775ee0a1d911514292579770b214d31c3
11 changes: 9 additions & 2 deletions trunk/ipc/msg.c
Original file line number Diff line number Diff line change
Expand Up @@ -803,8 +803,15 @@ static inline void free_copy(struct msg_msg *copy)
free_msg(copy);
}
#else
#define prepare_copy(buf, sz, msgflg, msgtyp, copy_nr) ERR_PTR(-ENOSYS)
#define fill_copy(copy_nr, msg_nr, msg, copy) NULL

static inline struct msg_msg *prepare_copy(void __user *buf, size_t bufsz,
int msgflg, long *msgtyp,
unsigned long *copy_number)
{
return ERR_PTR(-ENOSYS);
}

static inline void free_copy(struct msg_msg *copy)
{
}
Expand All @@ -819,7 +826,7 @@ long do_msgrcv(int msqid, void __user *buf, size_t bufsz, long msgtyp,
int mode;
struct ipc_namespace *ns;
struct msg_msg *copy = NULL;
unsigned long __maybe_unused copy_number;
unsigned long copy_number = 0;

if (msqid < 0 || (long) bufsz < 0)
return -EINVAL;
Expand Down

0 comments on commit 25f0830

Please sign in to comment.