-
由 Lv Yunlong 提交于
stable inclusion from linux-4.19.185 commit 31216d487aa054eef8be53a957cbf00233f46272 -------------------------------- [ Upstream commit c8c165de ] 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.cnAcked-by: NKai Mäkisara <kai.makisara@kolumbus.fi> Signed-off-by: NLv Yunlong <lyl2019@mail.ustc.edu.cn> Signed-off-by: NMartin K. Petersen <martin.petersen@oracle.com> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
6745070e