hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr()
PATCH 1/1 hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr()
--- hw/core/qdev-properties-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
hw/core/qdev-properties-system.c +1 -1
@@ -903,7 +903,7 @@ static void set_pci_host_devaddr(Object *obj, Visitor *v, const char *name, bus = val; p = (char *)e +1 ; -if (qemu_strtoul (p, &e,16 , &val) <0 || val >0x1f || e == p) { +if (qemu_strtoul (p, &e,16 , &val) <0 || val >0xff || e == p) { goto inval; }if (*e ==':' ) {
Signature · 1 line
2.28.0
Patchew URL: https://patchew.org/QEMU/[email protected]/
Patchew URL: https://patchew.org/QEMU/[email protected]/
Hi,
This series seems to have some coding style problems. See output below for more information:
Type: series
Message-id: [email protected]
Subject: [PATCH] hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr()
=== TEST SCRIPT BEGIN ===
#!/bin/bash
git rev-parse base > /dev/null || exit 0
git config --local diff.renamelimit 0
git config --local diff.renames True
git config --local diff.algorithm histogram./scripts/checkpatch.pl --mailback base..
=== TEST SCRIPT END ===
Updating 3c8cf5a9c21ff8782164d1def7f44bd888713384
From https://github.com/patchew-project/qemu
- [tag update] patchew/[email protected] -> patchew/[email protected]
* [new tag] patchew/[email protected] -> patchew/[email protected]
Switched to a new branch 'test'
2b88f0c hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr()
=== OUTPUT BEGIN ===
ERROR: Missing Signed-off-by: line(s)
total: 1 errors, 0 warnings, 8 lines checked
Commit 2b88f0c41c07 (hw/core/qdev-properties: Fix pci bus range in set_pci_host_devaddr()) has style problems, please review. If any of these errors are false positives report them to the maintainer, see
CHECKPATCH in MAINTAINERS.
=== OUTPUT END ===
Test command exited with code: 1
The full log is available at
http://patchew.org/logs/[email protected]/testing.checkpatch/?type=message.
---
Email generated automatically by Patchew [https://patchew.org/].
Please send your feedback to [email protected]
Hi Klaus,
On 10/13/20 12:58 AM, Klaus Herman wrote:
Please include:
You forgot to sign your patch, see:
https://wiki.qemu.org/Contribute/SubmitAPatch#Patch_emails_must_include_a_Signed-off-by:_line
Quoted 18 lines
--- hw/core/qdev-properties-system.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)hw/core/qdev-properties-system.c +1
-1@@ -903,7 +903,7 @@ static void set_pci_host_devaddr(Object *obj, Visitor *v, const char *name, bus = val; p = (char *)e +1 ; -if (qemu_strtoul (p, &e,16 , &val) <0 || val >0x1f || e == p) { +if (qemu_strtoul (p, &e,16 , &val) <0 || val >0xff || e == p) { goto inval; }if (*e ==':' ) {