svn commit: r333242 - head/sys/kern
Sean Bruno
sbruno at freebsd.org
Fri May 4 17:28:45 UTC 2018
For the "official" record:
Approved-by: sbruno
:-)
sean
p.s. silly svn didn't stop this commit, I wonder why.
On 05/04/18 10:20, K. Macy wrote:
> Yes. Good catch. Thanks.
>
> -M
>
>>
>> Missing Approved by: sbruno?
>>
>>
>>> Modified:
>>> head/sys/kern/kern_descrip.c
>>>
>>> Modified: head/sys/kern/kern_descrip.c
>>> ==============================================================================
>>> --- head/sys/kern/kern_descrip.c Fri May 4 04:05:07 2018 (r333241)
>>> +++ head/sys/kern/kern_descrip.c Fri May 4 06:51:01 2018 (r333242)
>>> @@ -1503,7 +1503,7 @@ filecaps_copy(const struct filecaps *src, struct filec
>>>
>>> if (src->fc_ioctls != NULL && !locked)
>>> return (false);
>>> - *dst = *src;
>>> + memcpy(dst, src, sizeof(*src));
>>> if (src->fc_ioctls == NULL)
>>> return (true);
>>>
>>> @@ -1512,7 +1512,7 @@ filecaps_copy(const struct filecaps *src, struct filec
>>>
>>> size = sizeof(src->fc_ioctls[0]) * src->fc_nioctls;
>>> dst->fc_ioctls = malloc(size, M_FILECAPS, M_WAITOK);
>>> - bcopy(src->fc_ioctls, dst->fc_ioctls, size);
>>> + memcpy(dst->fc_ioctls, src->fc_ioctls, size);
>>> return (true);
>>> }
>>>
>>>
>>>
>>
>> --
>> Rod Grimes rgrimes at freebsd.org
>> _______________________________________________
>> svn-src-head at freebsd.org mailing list
>> https://lists.freebsd.org/mailman/listinfo/svn-src-head
>> To unsubscribe, send any mail to "svn-src-head-unsubscribe at freebsd.org"
>
>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 614 bytes
Desc: OpenPGP digital signature
URL: <http://lists.freebsd.org/pipermail/svn-src-head/attachments/20180504/4a9a1954/attachment.sig>
More information about the svn-src-head
mailing list