--- kernel-source-2.6.10-telco-1.43/kernel/ppa.c 2008-03-12 09:04:29.369108501 +0000 +++ kernel-source/kernel/ppa.c 2008-03-12 09:03:08.565398554 +0000 @@ -7,7 +7,7 @@ * Jean-Francois Bigras * Mario Clavet * - * Copyright (C) 2006,2007 Motorola Global Software Group. + * Copyright (C) 2006,2007,2008 Motorola Global Software Group. * */ #include @@ -157,11 +157,7 @@ /* Retreive the task_struct from the inode struct. */ static inline struct task_struct* proc_task(struct inode *inode) { -#if ( LINUX_VERSION_CODE >= KERNEL_VERSION(2,6,16) ) - return get_pid_task(PROC_I(inode)->pid, PIDTYPE_PID); -#else return PROC_I(inode)->task; -#endif } /* @@ -203,7 +199,6 @@ out: read_unlock(&t->ppa_lock); - put_task_struct(t); return bytecnt; }