Commit 5048cf35 authored by Hannes Reinecke's avatar Hannes Reinecke Committed by Li Nan
Browse files

scsi: core: Reshuffle response handling in scsi_mode_sense()

mainline inclusion
from mainline-v5.14-rc1
commit 64aaa3dd
category: bugfix
bugzilla: 189811, https://gitee.com/src-openeuler/kernel/issues/I9FNFK
CVE: CVE-2021-47182

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=64aaa3dd096a1949ab216cdcc105a10059ab1244

--------------------------------

Reshuffle response handling in scsi_mode_sense() to make the code easier to
follow.

[mkp: fix build]

Link: https://lore.kernel.org/r/20210427083046.31620-5-hare@suse.de


Suggested-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarHannes Reinecke <hare@suse.de>
Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>

Conflict:
	drivers/scsi/scsi_lib.c

Signed-off-by: default avatarLi Nan <linan122@huawei.com>
parent faa13c71
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment