Commit c6e21e1683c2508a2b23588e1fc2e7bf6fc2549e
Committed by
Greg Kroah-Hartman
1 parent
5823d100ae
Exists in
master
and in
7 other branches
[PATCH] PCI: Remove newline from pci MODALIAS variable
the pci core sends out a hotplug event variable MODALIAS with a trailing newline. This is inconsistent with all other event variables and breaks some hotplug tools. This patch removes the said newline. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff
drivers/pci/hotplug.c
... | ... | @@ -54,7 +54,7 @@ |
54 | 54 | |
55 | 55 | envp[i++] = scratch; |
56 | 56 | length += scnprintf (scratch, buffer_size - length, |
57 | - "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x\n", | |
57 | + "MODALIAS=pci:v%08Xd%08Xsv%08Xsd%08Xbc%02Xsc%02Xi%02x", | |
58 | 58 | pdev->vendor, pdev->device, |
59 | 59 | pdev->subsystem_vendor, pdev->subsystem_device, |
60 | 60 | (u8)(pdev->class >> 16), (u8)(pdev->class >> 8), |