Page MenuHomeFreeBSD

linuxkpi: Clean up linux_shmem_file_setup() a bit
AcceptedPublic

Authored by markj on Mon, Jan 12, 6:56 PM.
Tags
None
Referenced Files
F142012590: D54673.id.diff
Wed, Jan 14, 10:06 PM
F142009564: D54673.id.diff
Wed, Jan 14, 9:05 PM
Unknown Object (File)
Tue, Jan 13, 5:09 PM
Unknown Object (File)
Tue, Jan 13, 2:39 PM
Unknown Object (File)
Tue, Jan 13, 12:21 PM
Unknown Object (File)
Tue, Jan 13, 10:49 AM
Subscribers

Details

Reviewers
emaste
bz
Group Reviewers
linuxkpi
cheri
Summary
  • Free the pointer that was returned by the allocator, instead of the address of the first member. These will be equal in practice, but it's sketchy and possibly won't work on CHERI.
  • Use an anonymous struct, there's no need to name it.

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Skipped
Unit
Tests Skipped
Build Status
Buildable 69831
Build 66714: arc lint + arc unit