lkml.org 
[lkml]   [2010]   [Mar]   [22]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
From
SubjectRe: [patch] afs: potential null dereference
Date
Dan Carpenter <error27@gmail.com> wrote:

> It seems clear from the surrounding code that xpermits is allowed to be
> NULL here.

Interesting. The memcpy() won't oops due to this because if it is given a
NULL pointer, it will also be given a zero count. I wonder if this means the
if-statement your patch adds is actually unnecessary...

David


\
 
 \ /
  Last update: 2010-03-22 13:07    [W:1.447 / U:0.000 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site