]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
scsi: megaraid: Fix mega_cmd_done() CMDID_INT_CMDS
authorDanila Chernetsov <listdansp@mail.ru>
Fri, 17 Mar 2023 17:51:09 +0000 (17:51 +0000)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 25 Mar 2023 00:27:17 +0000 (20:27 -0400)
commit75cb113cd43f06aaf4f1bda0069cfd5b98e909eb
treec4e2d79f221e9e2b6e6e3d316e9d943ac98690f4
parent62d15dba0aa4448c15da9c9443018c70fc2527b2
scsi: megaraid: Fix mega_cmd_done() CMDID_INT_CMDS

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

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

Fixes: 0f2bb84d2a68 ("[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>
drivers/scsi/megaraid.c