From: kosmirror <kos...@us...> - 2025-07-14 01:15:01
|
This is an automated email from the git hooks/post-receive script. It was generated because a ref change was pushed to the repository containing the project "A pseudo Operating System for the Dreamcast.". The branch, master has been updated via dd8d2eb764db4584dc77f767ba2bba13cb2daa05 (commit) from 5d2b7a432487ba8cf06cf68a8ec76ff02c8815e7 (commit) Those revisions listed above that are new to this repository have not appeared on any other notification email; so we list those revisions in full, below. - Log ----------------------------------------------------------------- commit dd8d2eb764db4584dc77f767ba2bba13cb2daa05 Author: darc <da...@pr...> Date: Sun Jul 13 17:08:25 2025 -0500 Fix net_init crash when there are 0 detected network devices ----------------------------------------------------------------------- Summary of changes: kernel/net/net_core.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/kernel/net/net_core.c b/kernel/net/net_core.c index 8d2b8dc9..0f4ae099 100644 --- a/kernel/net/net_core.c +++ b/kernel/net/net_core.c @@ -138,7 +138,10 @@ int net_dev_init(void) { dbglog(DBG_DEBUG, "net_dev_init: detected %d usable network device(s)\n", detected); - return 0; + if(detected) + return 0; + else + return -1; } /* Init */ hooks/post-receive -- A pseudo Operating System for the Dreamcast. |