]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
linsysfs(5): Fix two unrelated issues
authorConrad Meyer <cem@FreeBSD.org>
Mon, 18 Sep 2017 17:14:13 +0000 (17:14 +0000)
committerConrad Meyer <cem@FreeBSD.org>
Mon, 18 Sep 2017 17:14:13 +0000 (17:14 +0000)
commit4d367f25014f8ff5241b91f693b97fcc4f6e7de6
tree9e61b7f7be930d50acde238b7378c5bf9822e76e
parenteb039c2661bbdc6e61e31c908f1a33b33a553006
linsysfs(5): Fix two unrelated issues

1. Swap the order of device_get_ivars with device_get_devclass and devclass
   name validation.  This bug was introduced in r323692.

2. Error check device_get_children and free the returned list.  This bug was
   introduced in the original linsysfs commit.

Reported by: Oleg V. Nauman <oleg AT theweb.org.ua>, hselasky (1); hselasky (2)
Reviewed by: hselasky
Sponsored by: Dell EMC Isilon
Differential Revision: https://reviews.freebsd.org/D12407
sys/compat/linsysfs/linsysfs.c