Commit 575e079
cifs: Fix xid leak in cifs_flock()
If not flock, before return -ENOLCK, should free the xid,
otherwise, the xid will be leaked.
Fixes: d067799 ("cifs: add support for flock")
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Signed-off-by: Zhang Xiaoxu <[email protected]>
Signed-off-by: Steve French <[email protected]>1 parent 9a97df4 commit 575e079
1 file changed
+7
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1885 | 1885 | | |
1886 | 1886 | | |
1887 | 1887 | | |
1888 | | - | |
1889 | 1888 | | |
1890 | 1889 | | |
1891 | | - | |
1892 | | - | |
| 1890 | + | |
| 1891 | + | |
| 1892 | + | |
| 1893 | + | |
| 1894 | + | |
1893 | 1895 | | |
1894 | 1896 | | |
1895 | 1897 | | |
| |||
1908 | 1910 | | |
1909 | 1911 | | |
1910 | 1912 | | |
| 1913 | + | |
1911 | 1914 | | |
1912 | | - | |
| 1915 | + | |
1913 | 1916 | | |
1914 | 1917 | | |
1915 | 1918 | | |
| |||
0 commit comments