linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Patch 2.4.21 fix use of pid in capabillity.c
@ 2003-06-28 20:48 Walter Harms
  0 siblings, 0 replies; only message in thread
From: Walter Harms @ 2003-06-28 20:48 UTC (permalink / raw)
  To: linux-kernel


Hi liste,
this is a small patch to fix functions that do not use the 
correct type for pid. daniele bellucci and i have worked this 
out. 

walter


--- kernel/capability.c.org	2003-06-25 22:27:44.000000000 +0200
+++ kernel/capability.c	2003-06-25 22:32:08.000000000 +0200
@@ -21,7 +21,8 @@
 
 asmlinkage long sys_capget(cap_user_header_t header, cap_user_data_t dataptr)
 {
-     int error, pid;
+     int error;
+     pid_t pid;
      __u32 version;
      struct task_struct *target;
      struct __user_cap_data_struct data;
@@ -131,7 +132,8 @@
      kernel_cap_t inheritable, permitted, effective;
      __u32 version;
      struct task_struct *target;
-     int error, pid;
+     int error;
+     pid_t pid;
 
      if (get_user(version, &header->version))
 	     return -EFAULT; 
-- 

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2003-06-28 20:33 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-06-28 20:48 Patch 2.4.21 fix use of pid in capabillity.c Walter Harms

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).