mirror of
https://github.com/Fishwaldo/Star64_linux.git
synced 2025-07-06 22:42:10 +00:00
[PATCH] n_r3964: Use struct pid to track user space clients
Currently this driver tracks user space clients it should send signals to. In the presenct of file descriptor passing this is appears susceptible to confusion from pid wrap around issues. Replacing this with a struct pid prevents us from getting confused, and prepares for a pid namespace implementation. Signed-off-by: Eric W. Biederman <ebiederm@xmission.com> Cc: David Woodhouse <dwmw2@infradead.org> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
parent
b3f13debd5
commit
3cec556a84
2 changed files with 18 additions and 21 deletions
|
@ -116,7 +116,7 @@ struct r3964_message;
|
|||
|
||||
struct r3964_client_info {
|
||||
spinlock_t lock;
|
||||
pid_t pid;
|
||||
struct pid *pid;
|
||||
unsigned int sig_flags;
|
||||
|
||||
struct r3964_client_info *next;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue