Page MenuHomeFreeBSD

Fix a missing initialization in vm_mmap().
ClosedPublic

Authored by markj on Jul 5 2015, 2:53 AM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Jan 3, 10:19 PM
Unknown Object (File)
Dec 5 2024, 12:02 AM
Unknown Object (File)
Nov 28 2024, 6:48 PM
Unknown Object (File)
Nov 25 2024, 9:02 PM
Unknown Object (File)
Nov 24 2024, 3:00 AM
Unknown Object (File)
Nov 23 2024, 3:49 AM
Unknown Object (File)
Nov 21 2024, 10:57 AM
Unknown Object (File)
Nov 20 2024, 10:49 AM
Subscribers

Details

Summary

object was previously being used uninitialized in the OBJT_DEFAULT case. Looks like this was introduced in r283998.

Diff Detail

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

Event Timeline

markj retitled this revision from to Fix a missing initialization in vm_mmap()..
markj edited the test plan for this revision. (Show Details)
markj updated this object.
markj added reviewers: kib, jhb.
kib edited edge metadata.
This revision is now accepted and ready to land.Jul 5 2015, 7:40 AM
This revision was automatically updated to reflect the committed changes.

This is fine though I probably would have preferred to set object to NULL only in the OBJT_DEFAULT case so it is more explicit as to when that value is used.

In D2992#59332, @jhb wrote:

This is fine though I probably would have preferred to set object to NULL only in the OBJT_DEFAULT case so it is more explicit as to when that value is used.

This could be done separately (the patch is already committed), together with the cleanup of the OBJT_DEVICE case, which is to remove the block and move local vars declaration to the function top level.