[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Xen-devel] [PATCH 1/2] [xen/pciback] Fix compiler warning in pci_stub.c.
warning: the frame size of 1036 bytes is larger than 1024 bytes Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@xxxxxxxxxx> --- drivers/xen/pciback/pci_stub.c | 5 +++-- 1 files changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/xen/pciback/pci_stub.c b/drivers/xen/pciback/pci_stub.c index ec67baa..8bd141a 100644 --- a/drivers/xen/pciback/pci_stub.c +++ b/drivers/xen/pciback/pci_stub.c @@ -496,16 +496,17 @@ static const struct pci_device_id pcistub_ids[] = { {0,}, }; +#define PCI_NODENAME_MAX 40 static void kill_domain_by_device(struct pcistub_device *psdev) { struct xenbus_transaction xbt; int err; - char nodename[1024]; + char nodename[PCI_NODENAME_MAX]; if (!psdev) dev_err(&psdev->dev->dev, "device is NULL when do AER recovery/kill_domain\n"); - sprintf(nodename, "/local/domain/0/backend/pci/%d/0", + snprintf(nodename, PCI_NODENAME_MAX, "/local/domain/0/backend/pci/%d/0", psdev->pdev->xdev->otherend_id); nodename[strlen(nodename)] = '\0'; -- 1.6.2.5 _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |