linux_dsm_epyc7002/drivers/uio
Liu Jian 221a1f4ac1 driver: uio: fix possible use-after-free in __uio_register_device
In uio_dev_add_attributes() error handing case, idev is used after
device_unregister(), in which 'idev' has been released, touch idev cause
use-after-free.

Fixes: a93e7b3315 ("uio: Prevent device destruction while fds are open")
Signed-off-by: Liu Jian <liujian56@huawei.com>
Reviewed-by: Hamish Martin <hamish.martin@alliedtelesis.co.nz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-01-31 16:36:52 +01:00
..
Kconfig
Makefile
uio_aec.c
uio_cif.c
uio_dmem_genirq.c
uio_fsl_elbc_gpcm.c
uio_hv_generic.c uio_hv_generic: set callbacks on open 2018-12-11 14:23:17 +01:00
uio_mf624.c
uio_netx.c
uio_pci_generic.c uio/uio_pci_generic: Disable bus-mastering on release 2019-01-31 16:22:51 +01:00
uio_pdrv_genirq.c
uio_pruss.c
uio_sercos3.c
uio.c driver: uio: fix possible use-after-free in __uio_register_device 2019-01-31 16:36:52 +01:00