summaryrefslogtreecommitdiff
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2020-07-30 11:20:22 +0300
committerOded Gabbay <oded.gabbay@gmail.com>2020-08-22 12:47:58 +0300
commit804d057cfae25c5447b36099fa59682d0d184ed6 (patch)
tree0073a2ec0bb20a0404870bc8e1f8cacd65866055 /net/unix/af_unix.c
parent58361aae4b0eed388680a89ac153d27177f40510 (diff)
downloadlinux-804d057cfae25c5447b36099fa59682d0d184ed6.tar.xz
habanalabs: fix incorrect check on failed workqueue create
The null check on a failed workqueue create is currently null checking hdev->cq_wq rather than the pointer hdev->cq_wq[i] and so the test will never be true on a failed workqueue create. Fix this by checking hdev->cq_wq[i]. Addresses-Coverity: ("Dereference before null check") Fixes: 5574cb2194b1 ("habanalabs: Assign each CQ with its own work queue") Signed-off-by: Colin Ian King <colin.king@canonical.com> Reviewed-by: Oded Gabbay <oded.gabbay@gmail.com> Signed-off-by: Oded Gabbay <oded.gabbay@gmail.com>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions