Re: [PATCH 17/26] staging: comedi: ni_labpc: only allocate necessary subdevices

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 2013-03-20 01:07, H Hartley Sweeten wrote:
Each comedi_subdevice uses one of the minors allocated to the
comedi subsystem. The devices used with this driver need a minimum
of 2 and a maximum of 5 subdevices.

Only allocate and initialize the number of subdevices actually needed
by the device.

This will break user-space code using one of these devices that assume the previous subdevice numbers are still valid.

--
-=( Ian Abbott @ MEV Ltd.    E-mail: <abbotti@xxxxxxxxx>        )=-
-=( Tel: +44 (0)161 477 1898   FAX: +44 (0)161 718 3587         )=-
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/devel


[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux