]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
dmaengine: idxd: Fix missing error code in idxd_cdev_open()
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 2 Jun 2021 10:07:26 +0000 (18:07 +0800)
committerStefan Bader <stefan.bader@canonical.com>
Fri, 13 Aug 2021 07:29:32 +0000 (09:29 +0200)
commit9f75a41d32f91f2276d01b370e3cad9be475e423
tree14b75837fd099da1aad1e1d30958fef4f7cdc2dc
parente9e34347678af7139d7f528daba033ca20e5aa20
dmaengine: idxd: Fix missing error code in idxd_cdev_open()

BugLink: https://bugs.launchpad.net/bugs/1936863
[ Upstream commit 99b18e88a1cf737ae924123d63b46d9a3d17b1af ]

The error code is missing in this code scenario, add the error code
'-EINVAL' to the return value 'rc'.

Eliminate the follow smatch warning:

drivers/dma/idxd/cdev.c:113 idxd_cdev_open() warn: missing error code
'rc'.

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Dave Jiang <dave.jiang@intel.com>
Link: https://lore.kernel.org/r/1622628446-87909-1-git-send-email-jiapeng.chong@linux.alibaba.com
Signed-off-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
drivers/dma/idxd/cdev.c