-
Notifications
You must be signed in to change notification settings - Fork 232
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
sol: avoid segmentation fault at boot time
req_queue_init() fails when the link speed of the back interface is not available _and_ the parameter req_channel_bw_mbps is not defined. When this happens, sol_stage2() calls cleanup_sol(), which triggers a segmentation fault if a request queue is not initiated. This commit solves this problem by adding list_initiated() to include/list.h, and using it to test if the request queues are initiated in cleanup_sol() before freeing the associated resources.
- Loading branch information
1 parent
7809449
commit 6f9b7d8
Showing
2 changed files
with
24 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters