Prevent memory leaks in error paths by deferring
authorvlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 19 Nov 2008 11:37:45 +0000 (11:37 +0000)
committervlnb <vlnb@d57e44dd-8a1f-0410-8b47-8ef2f437770f>
Wed, 19 Nov 2008 11:37:45 +0000 (11:37 +0000)
commit03150d61ea442eef173bbd2ca63f013b38c31843
tree1c2e240cff2d4ed420a0434e202cc699242e08c5
parent8cce1970585898f8c39376b4d64e466af6577a72
Prevent memory leaks in error paths by deferring
allocation until we have checked for errors. Also, fix the host ID
(target #) to be one larger than the max target ID for the host. Also,
reduce the number of outstanding commands per LUN to 1 (although this
might not be needed). Also scst_lcl_ini_driver_template flags cleanup.

Signed-off-by: Richard Sharpe <realrichardsharpe@gmail.com>
Signed-off-by: Vladislav Bolkhovitin <vst@vlnb.net>
git-svn-id: https://scst.svn.sourceforge.net/svnroot/scst/trunk@576 d57e44dd-8a1f-0410-8b47-8ef2f437770f
scst_local/scst_local.c