projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9960784
)
nvmet: for nvme admin set_features cmd, call nvmet_check_data_len_lte()
author
Amit Engel
<Amit.Engel@dell.com>
Wed, 4 Jan 2023 08:44:32 +0000
(10:44 +0200)
committer
Christoph Hellwig
<hch@lst.de>
Wed, 1 Feb 2023 13:22:00 +0000
(14:22 +0100)
This is due to the fact that the host is allowed to pass the controller
an sgl describing a buffer that is larger than the payload itself
Signed-off-by: Amit Engel <Amit.Engel@dell.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
drivers/nvme/target/admin-cmd.c
patch
|
blob
|
history
diff --git
a/drivers/nvme/target/admin-cmd.c
b/drivers/nvme/target/admin-cmd.c
index 6a54ed6fb1214404d7738bf32c7b14d2441ee6d6..80099df37314a73b2a5ff5bf0208f53d5ebe0c73 100644
(file)
--- a/
drivers/nvme/target/admin-cmd.c
+++ b/
drivers/nvme/target/admin-cmd.c
@@
-840,7
+840,7
@@
void nvmet_execute_set_features(struct nvmet_req *req)
u16 nsqr;
u16 ncqr;
- if (!nvmet_check_
transfer_len
(req, 0))
+ if (!nvmet_check_
data_len_lte
(req, 0))
return;
switch (cdw10 & 0xff) {