Created attachment 217562 [details] 0001-asmc-handle-asmc_key_read-error asmc_key_read() return 1 and 0 only, some callers are checking using <0 for failure
asmc_key_read() return 1 and 0 only, some callers are checking using <0 for failure
A commit references this bug: Author: markj Date: Thu Aug 27 16:34:21 UTC 2020 New revision: 364871 URL: https://svnweb.freebsd.org/changeset/base/364871 Log: asmc(4): Handle errors from asmc_key_read() properly. asmc_key_read() returns only 0 and 1, some callers were checking incorrectly for failure. PR: 248939 Submitted by: Tong Zhang <ztong0001@gmail.com> MFC after: 1 week Changes: head/sys/dev/asmc/asmc.c
A commit references this bug: Author: markj Date: Thu Sep 3 13:56:48 UTC 2020 New revision: 365299 URL: https://svnweb.freebsd.org/changeset/base/365299 Log: MFC r364871: asmc(4): Handle errors from asmc_key_read() properly. PR: 248939 Changes: _U stable/12/ stable/12/sys/dev/asmc/asmc.c