scst_local: Fix a bug in an error path (merge r4658 from trunk)

git-svn-id: http://svn.code.sf.net/p/scst/svn/branches/2.2.x@4711 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2013-01-06 14:24:47 +00:00
parent 74d0d8be20
commit ea52096ff8

View File

@@ -1705,6 +1705,7 @@ out:
#ifndef CONFIG_SCST_PROC
unregister_dev:
device_unregister(&sess->dev);
goto out;
#endif
unregister_session: