Re: [patch] afs: potential null dereference

From: David Howells
Date: Mon Mar 22 2010 - 09:05:41 EST


Dan Carpenter <error27@xxxxxxxxx> 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
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/