]> git.baikalelectronics.ru Git - kernel.git/commit
nvme-core: don't use NVME_NSID_ALL for command effects and supported log
authorChaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Tue, 22 Sep 2020 19:49:38 +0000 (12:49 -0700)
committerChristoph Hellwig <hch@lst.de>
Wed, 23 Sep 2020 18:01:47 +0000 (20:01 +0200)
commit9cd90644ca9475303fd671a0f6d2ea883229d19e
treed2eb584d8e67da9ec29e72a7784492f2d9e0beba
parenta02a8279690aaf5e0156a8f1f6d8bfcf81237718
nvme-core: don't use NVME_NSID_ALL for command effects and supported log

In the function nvme_get_effects_log() it uses NVME_NSID_ALL which has
namespace scope. The command effect log page is controller specific.

Replace NVME_NSID_ALL with 0x00 which specifies the controller scope
instead of namespace scope.

Fixes: 13329f5e2749 ("nvme: check admin passthru command effects")
Link: https://bugzilla.kernel.org/show_bug.cgi?id=209287
Reported-by: Huai-Cheng Kuo <hh81478072@gmail.com>
Signed-off-by: Chaitanya Kulkarni <chaitanya.kulkarni@wdc.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/host/core.c