mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
[PATCH] file: modify struct fown_struct to use a struct pid
File handles can be requested to send sigio and sigurg to processes. By tracking the destination processes using struct pid instead of pid_t we make the interface safe from all potential pid wrap around problems. Signed-off-by: Eric W. Biederman <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
This commit is contained in:
parent
bde0d2c98b
commit
609d7fa956
8 changed files with 59 additions and 34 deletions
|
|
@ -92,7 +92,7 @@ int fcntl_dirnotify(int fd, struct file *filp, unsigned long arg)
|
|||
prev = &odn->dn_next;
|
||||
}
|
||||
|
||||
error = f_setown(filp, current->pid, 0);
|
||||
error = __f_setown(filp, task_pid(current), PIDTYPE_PID, 0);
|
||||
if (error)
|
||||
goto out_free;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue