summaryrefslogtreecommitdiff
path: root/drivers/nvme/host/ioctl.c
diff options
context:
space:
mode:
authorKeith Busch <kbusch@kernel.org>2022-09-19 12:45:08 -0700
committerChristoph Hellwig <hch@lst.de>2022-09-27 09:15:56 +0200
commita8eb6c1ba48bddea82e8d74cbe6e119f006be97d (patch)
tree5b98ed4d75cc60a97952fa479a1ef44f9438a774 /drivers/nvme/host/ioctl.c
parentbc8fb906b0ff9339b4286698cb7cd9cd5b8c53eb (diff)
nvme: copy firmware_rev on each init
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: Jeff Lien <jeff.lien@wdc.com> Signed-off-by: Keith Busch <kbusch@kernel.org> Reviewed-by: Sagi Grimberg <sagi@grimberg.me> Reviewed-by: Chaitanya Kulkarni <kch@nvidia.com> Reviewed-by: Chao Leng <lengchao@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/nvme/host/ioctl.c')
0 files changed, 0 insertions, 0 deletions