Commit 2f4e429
cifs: lock chan_lock outside match_session
Coverity had rightly indicated a possible deadlock
due to chan_lock being done inside match_session.
All callers of match_* functions should pick up the
necessary locks and call them.
Signed-off-by: Shyam Prasad N <[email protected]>
Reviewed-by: Paulo Alcantara (SUSE) <[email protected]>
Cc: [email protected]
Fixes: 724244c ("cifs: protect session channel fields with chan_lock")
Signed-off-by: Steve French <[email protected]>1 parent 2f0e4f0 commit 2f4e429
1 file changed
Lines changed: 7 additions & 6 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1721 | 1721 | | |
1722 | 1722 | | |
1723 | 1723 | | |
1724 | | - | |
| 1724 | + | |
1725 | 1725 | | |
1726 | 1726 | | |
1727 | 1727 | | |
| |||
1732 | 1732 | | |
1733 | 1733 | | |
1734 | 1734 | | |
1735 | | - | |
1736 | | - | |
1737 | | - | |
| 1735 | + | |
1738 | 1736 | | |
1739 | | - | |
1740 | | - | |
1741 | 1737 | | |
1742 | 1738 | | |
1743 | 1739 | | |
| |||
1865 | 1861 | | |
1866 | 1862 | | |
1867 | 1863 | | |
| 1864 | + | |
1868 | 1865 | | |
| 1866 | + | |
1869 | 1867 | | |
1870 | 1868 | | |
1871 | 1869 | | |
| 1870 | + | |
1872 | 1871 | | |
1873 | 1872 | | |
1874 | 1873 | | |
| |||
2693 | 2692 | | |
2694 | 2693 | | |
2695 | 2694 | | |
| 2695 | + | |
2696 | 2696 | | |
2697 | 2697 | | |
2698 | 2698 | | |
| |||
2705 | 2705 | | |
2706 | 2706 | | |
2707 | 2707 | | |
| 2708 | + | |
2708 | 2709 | | |
2709 | 2710 | | |
2710 | 2711 | | |
| |||
0 commit comments