Commit 47d10f8
ksmbd: fix bug on trap in smb2_lock
commit e26e2d2 upstream.
If lock count is greater than 1, flags could be old value.
It should be checked with flags of smb_lock, not flags.
It will cause bug-on trap from locks_free_lock in error handling
routine.
Cc: stable@vger.kernel.org
Reported-by: Norbert Szetei <norbert@doyensec.com>
Tested-by: Norbert Szetei <norbert@doyensec.com>
Signed-off-by: Namjae Jeon <linkinjeon@kernel.org>
Signed-off-by: Steve French <stfrench@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
(cherry picked from commit 8994f0c)1 parent 2c3735a commit 47d10f8
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7452 | 7452 | | |
7453 | 7453 | | |
7454 | 7454 | | |
7455 | | - | |
| 7455 | + | |
7456 | 7456 | | |
7457 | 7457 | | |
7458 | 7458 | | |
| |||
0 commit comments