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:Danila Chernetsov <listdansp@mail.ru> Link: https://lore.kernel.org/r/20230317175109.18585-1-listdansp@mail.ru Signed-off-by:
Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
sanglipeng <sanglipeng1@jd.com>
Loading
Please sign in to comment