]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
loader: handle malloc failures in vbe_init, use consistent naming
authorToomas Soome <tsoome@FreeBSD.org>
Mon, 18 Jan 2021 08:52:08 +0000 (10:52 +0200)
committerToomas Soome <tsoome@FreeBSD.org>
Tue, 19 Jan 2021 19:58:46 +0000 (21:58 +0200)
commit52e3a7300d817002d3b7f8336ba1716c9c2621a3
treeac5a54de044f345ac8fc957bb000987a6400a570
parent8e9313caa6725f8c65fcacb147ce88a9ba6f6f2a
loader: handle malloc failures in vbe_init, use consistent naming

Handle malloc failures in vbe_init().

If it should so happen and we do get malloc failure in vbe_init(),
use original mode list.

Replace nitems with nentries to have naming consistency and avoid
confusion with nitems() macro.

Reported by: yuripv, rpokala
stand/i386/libi386/vbe.c