MFC r199274, r199284:
Fix an obvious panic by not casting from a pointer that is 4-bytes alignment to a type that needs 8-byte alignment, and thus causing misaligned memory references.
This commit is contained in:
parent
0d5340f697
commit
564da3e7b4
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/stable/8/; revision=199733
@ -206,7 +206,7 @@ fha_extract_info(struct svc_req *req, struct fha_info *i)
|
||||
if (error)
|
||||
goto out;
|
||||
|
||||
i->fh = *(const u_int64_t *)(fh.fh_generic.fh_fid.fid_data);
|
||||
bcopy(fh.fh_generic.fh_fid.fid_data, &i->fh, sizeof(i->fh));
|
||||
|
||||
/* Content ourselves with zero offset for all but reads. */
|
||||
if (procnum != NFSPROC_READ)
|
||||
|
Loading…
Reference in New Issue
Block a user