[patch] afs: potential null dereference

David Howells dhowells at redhat.com
Mon Mar 22 09:05:24 EDT 2010


Dan Carpenter <error27 at gmail.com> wrote:

> I was concerned about the dereference here:
> 
> +       if (xpermits)
> +               memcpy(permits->permits, xpermits->permits,
>                                          ^^^^^^^^^^^^^^^^^
> +                       count * sizeof(struct afs_permit));

That's a good point - in which case your patch should definitely go in.

David



More information about the linux-afs mailing list