[PATCH] staging: for dgrp, nd_ps_desc buffer length need be 'MAX_DESC_LEN + 1'
Dan Carpenter
dan.carpenter at oracle.com
Fri Apr 26 07:43:38 UTC 2013
On Wed, Apr 24, 2013 at 11:18:03AM +0800, Chen Gang wrote:
>
> For dgrp, the buffer length of 'nd->nd_ps_desc' is 'MAX_DESC_LEN + 1', so
> the buffer length of 'getnode.nd_ps_desc' also need be 'MAX_DESC_LEN + 1',
> then can fully copy from 'nd->nd_ps_desc' to 'getnode.nd_ps_desc'.
>
This is a user space change so someone needs to check that it
doesn't break anything.
regards,
dan carpenter
More information about the devel
mailing list