Commit 1dcdf5f
cifs: Fix connections leak when tlink setup failed
If the tlink setup failed, lost to put the connections, then
the module refcnt leak since the cifsd kthread not exit.
Also leak the fscache info, and for next mount with fsc, it will
print the follow errors:
CIFS: Cache volume key already in use (cifs,127.0.0.1:445,TEST)
Let's check the result of tlink setup, and do some cleanup.
Fixes: 56c762e ("cifs: Refactor out cifs_mount()")
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Zhang Xiaoxu <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent f0c4d9f commit 1dcdf5f
1 file changed
+11
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3855 | 3855 | | |
3856 | 3856 | | |
3857 | 3857 | | |
3858 | | - | |
3859 | 3858 | | |
3860 | | - | |
| 3859 | + | |
| 3860 | + | |
| 3861 | + | |
| 3862 | + | |
| 3863 | + | |
| 3864 | + | |
3861 | 3865 | | |
3862 | 3866 | | |
3863 | 3867 | | |
| |||
3884 | 3888 | | |
3885 | 3889 | | |
3886 | 3890 | | |
| 3891 | + | |
| 3892 | + | |
| 3893 | + | |
| 3894 | + | |
3887 | 3895 | | |
3888 | | - | |
| 3896 | + | |
3889 | 3897 | | |
3890 | 3898 | | |
3891 | 3899 | | |
| |||
0 commit comments