[lxc-devel] [lxd/master] USB support - major/minor transposed
NOPDev on Github
lxc-bot at linuxcontainers.org
Sat Aug 20 02:25:10 UTC 2016
A non-text attachment was scrubbed...
Name: not available
Type: text/x-mailbox
Size: 912 bytes
Desc: not available
URL: <http://lists.linuxcontainers.org/pipermail/lxc-devel/attachments/20160820/cc885cb3/attachment.bin>
-------------- next part --------------
From 2636138e7d729db2e8297f2de4941bfb6e8d0ab6 Mon Sep 17 00:00:00 2001
From: defunct <defunct at defunct.io>
Date: Fri, 19 Aug 2016 18:54:33 -0700
Subject: [PATCH] fix USB transposed major/minor
---
lxd/devices.go | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/lxd/devices.go b/lxd/devices.go
index 595c6aa..a846b9e 100644
--- a/lxd/devices.go
+++ b/lxd/devices.go
@@ -56,12 +56,12 @@ type usbDevice struct {
}
func createUSBDevice(action string, vendor string, product string, major string, minor string, busnum string, devnum string) (usbDevice, error) {
- majorInt, err := strconv.Atoi(minor)
+ majorInt, err := strconv.Atoi(major)
if err != nil {
return usbDevice{}, err
}
- minorInt, err := strconv.Atoi(major)
+ minorInt, err := strconv.Atoi(minor)
if err != nil {
return usbDevice{}, err
}
More information about the lxc-devel
mailing list