Warner Losh
3888260471
Fix a bunch of issues (and a few non-issues but appeasement is easier
...
than arguing) Coverity found:
o Use open + fstat rather than stat + open to avoid any races for a
file that's static for the life of the system. This will prevent any
problems should someone insert a new device while installing a
kernel in the future.
o Use strlcpy instead of strcpy as a failsafe to knowing that the
strings can't possibly be larger than the buffer due to data
source limits (though in the future these limits might be more
dynamic).
o If we can't find the hints file, return rather than dereference
a NULL pointer.
o Check for lastmod before calling strcmp in case a PNP entry
comes before a module entry. That's not allowed, but within the
realm of crazy things programmers do.
o Free lastmod before exiting search_hints() to avoid a leak.
CID: 1383971, 1383970, 1383969, 1383965, 1383963, 1383960
2017-12-27 18:30:24 +00:00
..
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-12-09 15:59:10 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-18 14:26:50 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-12-06 05:18:52 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-29 08:17:03 +00:00
2017-12-08 00:57:13 +00:00
2017-11-30 20:33:45 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-12-27 03:23:01 +00:00
2017-11-30 20:33:45 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-18 14:26:50 +00:00
2017-10-31 00:07:04 +00:00
2017-12-21 19:19:43 +00:00
2017-12-27 18:30:24 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 21:10:50 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-12-24 16:39:57 +00:00
2017-12-02 07:29:24 +00:00
2017-12-12 19:26:28 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-12-05 05:02:46 +00:00
2017-11-27 15:37:16 +00:00
2017-11-30 20:33:45 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 12:37:14 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-12-14 08:57:37 +00:00
2017-12-27 03:23:01 +00:00
2017-10-31 00:07:04 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:37:16 +00:00
2017-10-29 08:17:03 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-12-26 16:20:38 +00:00
2017-11-18 14:26:50 +00:00
2017-11-20 19:49:47 +00:00
2017-12-18 09:35:04 +00:00
2017-10-31 00:07:04 +00:00
2017-12-27 03:23:01 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:28:26 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 23:51:51 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-12-13 16:13:17 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-12-15 06:05:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-12-13 16:13:17 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-12-27 03:23:01 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:37:16 +00:00
2017-11-18 14:26:50 +00:00
2017-11-18 14:26:50 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-12-05 19:54:55 +00:00
2016-06-13 10:30:49 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2016-05-04 23:20:53 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-11-20 19:49:47 +00:00
2017-11-20 19:49:47 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2015-12-01 05:23:19 +00:00
2017-11-20 19:49:47 +00:00
2017-11-27 15:37:16 +00:00
2017-12-20 20:25:28 +00:00
2017-11-27 15:37:16 +00:00
2017-11-27 15:37:16 +00:00
2017-11-18 14:26:50 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-11-27 15:37:16 +00:00
2017-11-18 14:26:50 +00:00
2017-11-18 14:26:50 +00:00
2017-11-27 15:37:16 +00:00
2017-10-31 00:07:04 +00:00
2017-10-31 00:07:04 +00:00
2017-12-25 19:08:39 +00:00
2016-08-19 21:14:27 +00:00
2015-12-21 17:41:08 +00:00
2015-11-08 20:56:04 +00:00
2017-01-28 02:22:15 +00:00
2015-11-21 16:37:11 +00:00
2016-10-22 01:57:15 +00:00
2015-12-21 17:41:08 +00:00