Source-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: src/sys/net
Module Name: src
Committed By: msaitoh
Date: Mon Oct 23 09:21:20 UTC 2017
Modified Files:
src/sys/net: if.c if.h
Log Message:
if_initalize() and if_attach() failed when resource allocation failed
(e.g. allocating softint). Without this change, it panics. It's bad because
resource shortage really occured when a lot of pseudo interface is created.
To avoid this problem, don't panic and change return value of if_initialize()
and if_attach() to int. Caller fanction will be recover from error cleanly by
checking the return value.
To generate a diff of this commit:
cvs rdiff -u -r1.395 -r1.396 src/sys/net/if.c
cvs rdiff -u -r1.240 -r1.241 src/sys/net/if.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Home |
Main Index |
Thread Index |
Old Index