Commit 4356291c authored by Danila Chernetsov's avatar Danila Chernetsov Committed by sanglipeng
Browse files

scsi: megaraid: Fix mega_cmd_done() CMDID_INT_CMDS

stable inclusion
from stable-v5.10.180
commit 202048ec1ee531bdef179c32d54bb51d26bfff5b
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I8DDFN

Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=202048ec1ee531bdef179c32d54bb51d26bfff5b



--------------------------------

[ Upstream commit 75cb113c ]

When cmdid == CMDID_INT_CMDS, the 'cmds' pointer is NULL but is
dereferenced below.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: 0f2bb84d ("[SCSI] megaraid: simplify internal command handling")
Signed-off-by: default avatarDanila Chernetsov <listdansp@mail.ru>
Link: https://lore.kernel.org/r/20230317175109.18585-1-listdansp@mail.ru


Signed-off-by: default avatarMartin K. Petersen <martin.petersen@oracle.com>
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
Signed-off-by: default avatarsanglipeng <sanglipeng1@jd.com>
parent 68ae98cb
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment