summaryrefslogtreecommitdiffstats
path: root/drivers/misc/vmw_vmci
diff options
context:
space:
mode:
authorSudip Mukherjee <sudipm.mukherjee@gmail.com>2017-03-06 23:23:43 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-03-16 17:32:21 +0900
commit9a69645dde1188723d80745c1bc6ee9af2cbe2a7 (patch)
tree8d3866be7cdda9390833dbc069155d67fbf40206 /drivers/misc/vmw_vmci
parent03270c6ac6207fc55bbf9d20d195029dca210c79 (diff)
downloadlinux-9a69645dde1188723d80745c1bc6ee9af2cbe2a7.tar.gz
linux-9a69645dde1188723d80745c1bc6ee9af2cbe2a7.tar.bz2
linux-9a69645dde1188723d80745c1bc6ee9af2cbe2a7.zip
ppdev: fix registering same device name
Usually every parallel port will have a single pardev registered with it. But ppdev driver is an exception. This userspace parallel port driver allows to create multiple parrallel port devices for a single parallel port. And as a result we were having a big warning like: "sysfs: cannot create duplicate filename '/devices/parport0/ppdev0.0'". And with that many parallel port printers stopped working. We have been using the minor number as the id field while registering a parralel port device with a parralel port. But when there are multiple parrallel port device for one single parallel port, they all tried to register with the same name like 'pardev0.0' and everything started failing. Use an incremented index as the id instead of the minor number. Fixes: 8b7d3a9d903e ("ppdev: use new parport device model") Cc: stable <stable@vger.kernel.org> # v4.9+ Bugzilla: https://bugzilla.redhat.com/show_bug.cgi?id=1414656 Bugzilla: https://bugs.archlinux.org/task/52322 Tested-by: James Feeney <james@nurealm.net> Signed-off-by: Sudip Mukherjee <sudip.mukherjee@codethink.co.uk> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc/vmw_vmci')
0 files changed, 0 insertions, 0 deletions