--- - branch: MAIN date: Mon Oct 23 09:21:20 UTC 2017 files: - new: '1.396' old: '1.395' path: src/sys/net/if.c pathrev: src/sys/net/if.c@1.396 type: modified - new: '1.241' old: '1.240' path: src/sys/net/if.h pathrev: src/sys/net/if.h@1.241 type: modified id: 20171023T092120Z.43c9ef2d989cb6f01fbee6f01cc85008f8299edb log: |2 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. module: src subject: 'CVS commit: src/sys/net' unixtime: '1508750480' user: msaitoh