OpenCloudOS-Kernel/drivers/rapidio/devices
Logan Gunthorpe dbef390d2e rapidio: utilize new cdev_device_add helper function
This driver did not originally set kobj.parent so it likely had
potential a use after free bug which this patch fixes.

We convert from device_register to device_initialize/cdev_device_add.
While we are at it we use put_device instead of kfree (as recommended
by the device_initialize documentation). We also remove an unnecessary
extra get_device from the code.

Signed-off-by: Logan Gunthorpe <logang@deltatee.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-03-21 06:44:33 +01:00
..
Kconfig rapidio/tsi721: convert to modular mport driver 2013-07-03 16:08:04 -07:00
Makefile rapidio: add mport char device driver 2016-03-22 15:36:02 -07:00
rio_mport_cdev.c rapidio: utilize new cdev_device_add helper function 2017-03-21 06:44:33 +01:00
tsi721.c rapidio/tsi721: fix incorrect detection of address translation condition 2016-09-01 17:52:02 -07:00
tsi721.h rapidio/tsi721_dma: add channel mask and queue size parameters 2016-08-02 19:35:33 -04:00
tsi721_dma.c rapidio/tsi721_dma: advance queue processing from transfer submit call 2016-08-02 19:35:35 -04:00