Page MenuHomeFreeBSD

Fix a regression in r310638.
ClosedPublic

Authored by kib on Jan 4 2017, 10:39 AM.
Tags
None
Referenced Files
Unknown Object (File)
Apr 2 2024, 7:43 PM
Unknown Object (File)
Apr 2 2024, 5:57 PM
Unknown Object (File)
Mar 3 2024, 7:33 AM
Unknown Object (File)
Mar 3 2024, 7:06 AM
Unknown Object (File)
Dec 24 2023, 4:34 PM
Unknown Object (File)
Dec 22 2023, 10:24 PM
Unknown Object (File)
Dec 20 2023, 11:08 PM
Unknown Object (File)
Sep 26 2023, 5:21 AM
Subscribers

Details

Summary

The callers of kern_getfsstat(UIO_SYSSPACE) expect that *buf always return memory which must be freed, regardless of the error. Assign NULL to *buf in case we are not going to allocate any memory due to invalid mode.

Test Plan

Reported and tested by: pho

Diff Detail

Repository
rS FreeBSD src repository - subversion
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

kib retitled this revision from to Fix a regression in r310638..
kib updated this object.
kib edited the test plan for this revision. (Show Details)
kib added reviewers: jhb, trasz.
kib set the repository for this revision to rS FreeBSD src repository - subversion.
kib added a subscriber: pho.
jhb edited edge metadata.
This revision is now accepted and ready to land.Jan 4 2017, 3:46 PM
This revision was automatically updated to reflect the committed changes.