projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369157b
)
nvme-fabrics: fix reporting of unrecognized options
author
Christoph Hellwig
<hch@lst.de>
Thu, 17 Aug 2017 11:57:49 +0000
(13:57 +0200)
committer
Christoph Hellwig
<hch@lst.de>
Thu, 17 Aug 2017 16:48:54 +0000
(18:48 +0200)
Only print the specified options that are not recognized, instead
of the whole list of options.
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Max Gurtovoy <maxg@mellanox.com>
drivers/nvme/host/fabrics.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/nvme/host/fabrics.c
b/drivers/nvme/host/fabrics.c
index 2e582a2409437bca7d603598290d023bd988c577..5f5cd306f76d05e8cb7351cb91403d7f9a554d9a 100644
(file)
--- a/
drivers/nvme/host/fabrics.c
+++ b/
drivers/nvme/host/fabrics.c
@@
-794,7
+794,8
@@
static int nvmf_check_allowed_opts(struct nvmf_ctrl_options *opts,
int i;
for (i = 0; i < ARRAY_SIZE(opt_tokens); i++) {
- if (opt_tokens[i].token & ~allowed_opts) {
+ if ((opt_tokens[i].token & opts->mask) &&
+ (opt_tokens[i].token & ~allowed_opts)) {
pr_warn("invalid parameter '%s'\n",
opt_tokens[i].pattern);
}