[ofa-general] [OPENSM] fix console segfault corner casem
Al Chu
chu11 at llnl.gov
Wed Sep 3 11:21:18 PDT 2008
Hey Sasha,
If the call to osm_console_init() fails (most typically b/c bind fails
b/c the port is already used), we can fall through into osm_console()
and segfault b/c a bunch of stuff isn't initialized properly. Can be
handled multiple ways. The patch below makes osm_console_init() return
a non-void so we can recognize if an error occurred.
Al
--
Albert Chu
chu11 at llnl.gov
925-422-5311
Computer Scientist
High Performance Systems Division
Lawrence Livermore National Laboratory
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-fix-segfault-corner-case-when-osm_console_init-fails.patch
Type: text/x-patch
Size: 3511 bytes
Desc: not available
URL: <http://lists.openfabrics.org/pipermail/general/attachments/20080903/0dce0ea1/attachment.bin>
More information about the general
mailing list