lkml.org 
[lkml]   [2008]   [Jan]   [16]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] rlim in proc/<pid>/status (2nd rev.)
    Hi Clifford,

    > +static inline char *task_rlim(struct task_struct *p, char *buffer)
    > +{
    > + unsigned long flags;
    > + struct rlimit rlim[RLIM_NLIMITS];
    > + int i;
    > +
    > + rcu_read_lock();
    > + if (lock_task_sighand(p, &flags)) {
    > + for (i=0; i<RLIM_NLIMITS; i++)
    > + rlim[i] = p->signal->rlim[i];
    > + unlock_task_sighand(p, &flags);
    > + }

    lock_task_sighand is possible return NULL?
    if so, rlim is uninitialized when NULL.


    - kosaki




    \
     
     \ /
      Last update: 2008-01-16 08:35    [W:0.023 / U:2.832 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site