]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Sanity check the return from the kernel.
authorimp <imp@FreeBSD.org>
Thu, 31 May 2018 02:57:51 +0000 (02:57 +0000)
committerimp <imp@FreeBSD.org>
Thu, 31 May 2018 02:57:51 +0000 (02:57 +0000)
commitf1d9e42fb6d614ed96ec01a7de4dc58894d31125
treedfff3b992320da7c68702a8c7d447dafc17bbcc3
parent356f4f83c1caa23721bc7180e0d47be749011e0f
Sanity check the return from the kernel.

We should be getting back as many bytes as we asked for, and we
don't handle shortages at all, so just reject anything that's
not right.

Differential Revision: https://reviews.freebsd.org/D15629
lib/libdevinfo/devinfo.c