diff options
author | Lv Yunlong <lyl2019@mail.ustc.edu.cn> | 2021-03-10 22:46:36 -0800 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2021-03-15 22:50:49 -0400 |
commit | c8c165dea4c8f5ad67b1240861e4f6c5395fa4ac (patch) | |
tree | 3c856f5652495b01837d926807af944a5de4e988 /drivers/s390 | |
parent | 2bb817712e2f77486d6ee17e7efaf91997a685f8 (diff) |
scsi: st: Fix a use after free in st_open()
In st_open(), if STp->in_use is true, STp will be freed by
scsi_tape_put(). However, STp is still used by DEBC_printk() after. It is
better to DEBC_printk() before scsi_tape_put().
Link: https://lore.kernel.org/r/20210311064636.10522-1-lyl2019@mail.ustc.edu.cn
Acked-by: Kai Mäkisara <kai.makisara@kolumbus.fi>
Signed-off-by: Lv Yunlong <lyl2019@mail.ustc.edu.cn>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/s390')
0 files changed, 0 insertions, 0 deletions