Skip to contentSkip to conversation

nvme: pci: Fix queue_count parameter

PATCH New Minwoo Im 1 participant 2 messages Apr 11, 2019 NVMe

lore
Share & tools
lore

Minwoo Im

author
#0 lore raw

cover nvme: pci: Fix queue_count parameter

The first patch will make it return an error if given value is larger than number of possible cpus. It has not been doing anything about it.

The second patch is just a nit for clean-up of local variable. It does not need to be initialized in this scope because kstrtoint() will return an error if it fails without referring local variable after it.

Minwoo Im (2):
nvme: pci: Return -EINVAL if given nr_queue larger than nr_cpu
nvme: pci: Do not initialize local_var

 drivers/nvme/host/pci.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
Signature · 1 line
2.17.1
author
#1 lore raw

cover nvme: pci: Fix queue_count parameter

Quoted 7 lines · Minwoo Im

The first patch will make it return an error if given value is larger than number of possible cpus. It has not been doing anything about it.

The second patch is just a nit for clean-up of local variable. It does not need to be initialized in this scope because kstrtoint() will return an error if it fails without referring local variable after it.

Quoted 7 lines

Minwoo Im (2):
nvme: pci: Return -EINVAL if given nr_queue larger than nr_cpu
nvme: pci: Do not initialize local_var

  drivers/nvme/host/pci.c | 4 ++--
  1 file changed, 2 insertions(+), 2 deletions(-)

Please ignore this cover letter because it does not have any URL from where it has been reported.

Thanks,