mirror of
https://github.com/SCST-project/scst.git
synced 2026-05-30 02:10:18 +00:00
We may receive disconnect before iscsi-scstd had the chance to open the character device. This would result in resource leak, since the device will not be freed. Fix this by only increasing reference once the device is actually opened. Signed-off-by: Yan Burman <yanb@mellanox.com> git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/iser@6080 d57e44dd-8a1f-0410-8b47-8ef2f437770f