linux/drivers/dma/idxd
Christophe JAILLET e9c5b0b53c dmaengine: idxd: Fix a possible NULL pointer dereference
'device_driver_attach()' dereferences its first argument (i.e. 'alt_drv')
so it must not be NULL.
Simplify the error handling logic about NULL 'alt_drv' in order to be
more robust and future-proof.

Fixes: 568b212646 ("dmaengine: idxd: fix uninit var for alt_drv")
Fixes: 6e7f3ee97b ("dmaengine: idxd: move dsa_drv support to compatible mode")

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/77f0dc4f3966591d1f0cffb614a94085f8895a85.1627560174.git.christophe.jaillet@wanadoo.fr
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-08-02 12:35:10 +05:30
..
bus.c Bus: Make remove callback return void tag 2021-07-27 19:12:14 +05:30
cdev.c dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30
compat.c dmaengine: idxd: Fix a possible NULL pointer dereference 2021-08-02 12:35:10 +05:30
device.c dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30
dma.c dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30
idxd.h dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30
init.c dmaengine: idxd: Set defaults for GRPCFG traffic class 2021-07-28 17:55:40 +05:30
irq.c dmaengine: idxd: fix abort status check 2021-07-29 09:43:20 +05:30
Makefile dmaengine: idxd: move dsa_drv support to compatible mode 2021-07-21 10:09:16 +05:30
perfmon.c dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
perfmon.h dmaengine: idxd: Add IDXD performance monitor support 2021-04-25 21:46:12 +05:30
registers.h dmaengine: idxd: Set defaults for GRPCFG traffic class 2021-07-28 17:55:40 +05:30
submit.c dmaengine: idxd: rotate portal address for better performance 2021-07-28 17:55:40 +05:30
sysfs.c dmanegine: idxd: add software command status 2021-07-28 17:56:55 +05:30