linux-stable/drivers/dma/idxd
Colin Ian King 28ac8e03c4 dmaengine: idxd: Fix potential null dereference on pointer status
There are calls to idxd_cmd_exec that pass a null status pointer however
a recent commit has added an assignment to *status that can end up
with a null pointer dereference.  The function expects a null status
pointer sometimes as there is a later assignment to *status where
status is first null checked.  Fix the issue by null checking status
before making the assignment.

Addresses-Coverity: ("Explicit null dereferenced")
Fixes: 89e3becd8f ("dmaengine: idxd: check device state before issue command")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/20210415110654.1941580-1-colin.king@canonical.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
2021-04-20 15:45:50 +05:30
..
cdev.c dmaengine: idxd: add IAX configuration support in the IDXD driver 2020-12-11 19:45:53 +05:30
device.c dmaengine: idxd: Fix potential null dereference on pointer status 2021-04-20 15:45:50 +05:30
dma.c dmaengine updates for v5.12-rc1 2021-02-23 15:05:10 -08:00
idxd.h dmaengine: idxd: check device state before issue command 2021-02-03 16:57:12 +05:30
init.c dmaengine updates for v5.12-rc1 2021-02-23 15:05:10 -08:00
irq.c dmaengine: idxd: fix misc interrupt completion 2021-01-17 12:19:25 +05:30
Makefile dmaengine: idxd: add char driver to expose submission portal to userland 2020-01-24 11:18:45 +05:30
registers.h dmaengine updates for v5.11-rc1 2020-12-17 12:52:23 -08:00
submit.c dmaengine updates for v5.11-rc1 2020-12-17 12:52:23 -08:00
sysfs.c dmaengine: idxd: off by one in cleanup code 2020-12-29 10:07:59 +05:30