Skip to content

Commit

Permalink
MT#55283 handle userspace fallback buffer pool
Browse files Browse the repository at this point in the history
Make sure we create the fallback buffer pool if the kernel module isn't
available but userspace operation is permitted.

Change-Id: I177c36b9a17c18f39e6c54ffb414c13fbb9c15ba
  • Loading branch information
rfuchs committed Jun 13, 2024
1 parent 1a45621 commit 025e06c
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions daemon/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1256,8 +1256,11 @@ static void kernel_setup(void) {
"%s (%s)", err, strerror(errno));
}
#endif
if (!kernel_setup_table(rtpe_config.kernel_table) && rtpe_config.no_fallback)
die("Userspace fallback disallowed - exiting");
if (!kernel_setup_table(rtpe_config.kernel_table)) {
if (rtpe_config.no_fallback)
die("Userspace fallback disallowed - exiting");
goto fallback;
}

if (rtpe_config.player_cache && rtpe_config.kernel_player > 0 && rtpe_config.kernel_player_media > 0) {
if (!kernel_init_player(rtpe_config.kernel_player_media, rtpe_config.kernel_player))
Expand Down

0 comments on commit 025e06c

Please sign in to comment.