Page MenuHomeFreeBSD

nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident
ClosedPublic

Authored by jhb on Thu, Nov 20, 2:52 PM.
Tags
None
Referenced Files
Unknown Object (File)
Thu, Dec 11, 8:02 AM
Unknown Object (File)
Tue, Dec 2, 1:16 PM
Unknown Object (File)
Sun, Nov 30, 1:57 AM
Unknown Object (File)
Thu, Nov 27, 6:19 PM
Unknown Object (File)
Tue, Nov 25, 4:02 PM
Unknown Object (File)
Fri, Nov 21, 2:39 PM
Unknown Object (File)
Fri, Nov 21, 2:35 PM
Unknown Object (File)
Fri, Nov 21, 2:29 PM
Subscribers

Details

Summary

These buffers should not overlap.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

jhb requested review of this revision.Thu, Nov 20, 2:52 PM

memmove -> memcpy is the right thing because sn and cddata->sn can't possibly overlap.

sys/dev/nvme/nvme.h
31–32

This is OBE. I committed, without review, this change earlier today. I had missed this review until I was doing a deep-dive into my unread email. mea culpa.

This revision is now accepted and ready to land.Wed, Nov 26, 3:02 AM
sys/dev/nvme/nvme.h
31–32

No worries.

jhb retitled this revision from nvme: Small cleanups to <dev/nvme/nvme.h> to nvme: Use memcpy instead of memmove in nvme_cdata_get_disk_ident.Tue, Dec 2, 3:56 PM
jhb edited the summary of this revision. (Show Details)