Commit e26e2d2
ksmbd: fix bug on trap in smb2_lock
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>1 parent 84d2d16 commit e26e2d2
1 file changed
Lines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7468 | 7468 | | |
7469 | 7469 | | |
7470 | 7470 | | |
7471 | | - | |
| 7471 | + | |
7472 | 7472 | | |
7473 | 7473 | | |
7474 | 7474 | | |
| |||
0 commit comments