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)
Jan 24 2024, 6:06 PM
Unknown Object (File)
Dec 31 2023, 3:09 AM
Unknown Object (File)
Dec 20 2023, 4:35 AM
Unknown Object (File)
Nov 8 2023, 2:48 AM
Unknown Object (File)
Sep 16 2023, 6:51 PM
Unknown Object (File)
Sep 16 2023, 6:50 PM
Unknown Object (File)
Sep 16 2023, 6:48 PM
Unknown Object (File)
Sep 16 2023, 6:47 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.