#include #include #include #include #include #include #include #include #include int main(int argc, char **argv) { const char *path; char buf[4]; int fd, rc; if (argc < 2) { fprintf(stderr, "usage: %s \n", argv[0]); return EXIT_FAILURE; } path = argv[1]; /* create a test variable */ fd = open(path, O_RDWR | O_CREAT, 0600); if (fd < 0) { perror("open(O_WRONLY)"); return EXIT_FAILURE; } rc = read(fd, buf, sizeof(buf)); if (rc != 0) { fprintf(stderr, "Reading a new var should return EOF\n"); return EXIT_FAILURE; } return EXIT_SUCCESS; } t.png' alt='cgit logo'/> index : net-next.git
net-next plumbingsTobias Klauser
summaryrefslogtreecommitdiff
ass='cgit-panel'>diff options
AgeCommit message (Expand)AuthorFilesLines
context:
space:
mode:
authorLinus Torvalds <torvalds@linux-foundation.org>2017-02-08 12:23:49 -0800
committerLinus Torvalds <torvalds@linux-foundation.org>2017-02-08 12:23:49 -0800
commitbe11f436a80b19cb5ef4cdfba7371a5178bd43cd (patch)
tree757250a0fe53c3947d9f244ffb04e51b53d13143 /drivers/usb/host/ohci-da8xx.c
parent472ff5be61f9593ee2d3ebbd716768e14de4659d (diff)
parentd98e0929071e7ef63d35c1838b0ad0805ae366dd (diff)
Merge tag 'pci-v4.10-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci
Pull PCI fixes from Bjorn Helgaas: - check MSI affinity vs. number of vectors to avoid memory corruption - drop runtime power management for PCIe hotplug ports for now to avoid regressing hotplug via sysfs * tag 'pci-v4.10-fixes-3' of git://git.kernel.org/pub/scm/linux/kernel/git/helgaas/pci: Revert "PCI: pciehp: Add runtime PM support for PCIe hotplug ports" PCI/MSI: Don't apply affinity if there aren't enough vectors left
Diffstat (limited to 'drivers/usb/host/ohci-da8xx.c')