outlib: fix infinite recursion due to incorrect wrapping

recursion: see recursion.

A wrapper function needs to call the function being wrapped, not
itself.

Signed-off-by: H. Peter Anvin (Intel) <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin (Intel) 2020-07-02 20:48:43 -07:00
parent 1939b69fdf
commit 1b50fec496

View File

@ -254,7 +254,7 @@ static inline uint64_t ol_nsects(void)
extern int32_t _ol_new_subsection(struct ol_sect *sect);
static inline int32_t ol_new_subsection(O_Section *sect)
{
return ol_new_subsection((struct ol_sect *)sect);
return _ol_new_subsection((struct ol_sect *)sect);
}
/*