summaryrefslogtreecommitdiffhomepage
path: root/pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go
diff options
context:
space:
mode:
authorgVisor bot <gvisor-bot@google.com>2020-02-27 22:54:51 +0000
committergVisor bot <gvisor-bot@google.com>2020-02-27 22:54:51 +0000
commit92c73f020c0e147788a7867f8133701b5bb9e9bf (patch)
tree0be1f695cff4a5af3366f6ba992a6eb92d4af2be /pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go
parent5ec8b393826ef0eb794f23c8f9ae72aaec1a88a7 (diff)
parentaa9f8abaef5c6250bdcee8fd88b2420f20791c5d (diff)
Merge release-20200219.0-61-gaa9f8ab (automated)
Diffstat (limited to 'pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go')
-rwxr-xr-xpkg/abi/linux/linux_arm64_abi_autogen_unsafe.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go b/pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go
index d80716abb..42f3aafd0 100755
--- a/pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go
+++ b/pkg/abi/linux/linux_arm64_abi_autogen_unsafe.go
@@ -219,7 +219,7 @@ func (s *Stat) Packed() bool {
// MarshalUnsafe implements marshal.Marshallable.MarshalUnsafe.
func (s *Stat) MarshalUnsafe(dst []byte) {
- if s.CTime.Packed() && s.ATime.Packed() && s.MTime.Packed() {
+ if s.ATime.Packed() && s.MTime.Packed() && s.CTime.Packed() {
safecopy.CopyIn(dst, unsafe.Pointer(s))
} else {
s.MarshalBytes(dst)
@@ -228,7 +228,7 @@ func (s *Stat) MarshalUnsafe(dst []byte) {
// UnmarshalUnsafe implements marshal.Marshallable.UnmarshalUnsafe.
func (s *Stat) UnmarshalUnsafe(src []byte) {
- if s.CTime.Packed() && s.ATime.Packed() && s.MTime.Packed() {
+ if s.ATime.Packed() && s.MTime.Packed() && s.CTime.Packed() {
safecopy.CopyOut(unsafe.Pointer(s), src)
} else {
s.UnmarshalBytes(src)
@@ -237,7 +237,7 @@ func (s *Stat) UnmarshalUnsafe(src []byte) {
// CopyOut implements marshal.Marshallable.CopyOut.
func (s *Stat) CopyOut(task marshal.Task, addr usermem.Addr) error {
- if !s.ATime.Packed() && s.MTime.Packed() && s.CTime.Packed() {
+ if !s.MTime.Packed() && s.CTime.Packed() && s.ATime.Packed() {
// Type Stat doesn't have a packed layout in memory, fall back to MarshalBytes.
buf := task.CopyScratchBuffer(s.SizeBytes())
s.MarshalBytes(buf)