Page MenuHomeFreeBSD

linsysfs(5): Fix two unrelated issues
ClosedPublic

Authored by cem on Sep 18 2017, 4:13 PM.
Tags
None
Referenced Files
Unknown Object (File)
Nov 25 2024, 7:37 AM
Unknown Object (File)
Nov 22 2024, 3:40 PM
Unknown Object (File)
Nov 22 2024, 11:02 AM
Unknown Object (File)
Nov 22 2024, 10:12 AM
Unknown Object (File)
Nov 22 2024, 3:32 AM
Unknown Object (File)
Nov 18 2024, 12:00 PM
Unknown Object (File)
Nov 17 2024, 6:24 PM
Unknown Object (File)
Nov 12 2024, 9:08 PM
Subscribers
None

Details

Summary
  1. Swap the order of device_get_ivars with device_get_devclass and devclass

name validation. This bug was introduced in r323692.

  1. Error check device_get_children and free the returned list. This bug was

introduced in the original linsysfs commit.

Diff Detail

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

Event Timeline

Will go ahead and commit unreviewed to fix the issue reported by Oleg V. Nauman since it seems like you've gone offline. Both fixes are straightforward.

sys/compat/linsysfs/linsysfs.c
357 ↗(On Diff #33190)
else
     name = NULL;

The code above might have dirtied this variable.

cem marked an inline comment as done.Sep 18 2017, 5:07 PM
This revision is now accepted and ready to land.Sep 18 2017, 5:11 PM
This revision was automatically updated to reflect the committed changes.