Commit 8f5816c2 authored by Keith Busch's avatar Keith Busch Committed by Yongqiang Liu
Browse files

nvme: copy firmware_rev on each init

stable inclusion
from stable-v4.19.262
commit 366a2b3110c69f919fb3277acc1a0bb8cd8a8dbd
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I5ZXGL


CVE: NA

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

[ Upstream commit a8eb6c1b ]

The firmware revision can change on after a reset so copy the most
recent info each time instead of just the first time, otherwise the
sysfs firmware_rev entry may contain stale data.

Reported-by: default avatarJeff Lien <jeff.lien@wdc.com>
Signed-off-by: default avatarKeith Busch <kbusch@kernel.org>
Reviewed-by: default avatarSagi Grimberg <sagi@grimberg.me>
Reviewed-by: default avatarChaitanya Kulkarni <kch@nvidia.com>
Reviewed-by: default avatarChao Leng <lengchao@huawei.com>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarYongqiang Liu <liuyongqiang13@huawei.com>
parent 86774965
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment