summaryrefslogtreecommitdiff
path: root/drivers/misc/ibmasm/command.c
diff options
context:
space:
mode:
authorHarshvardhan Jha <harshvardhan.jha@oracle.com>2021-07-08 13:16:42 +0530
committerSasha Levin <sashal@kernel.org>2021-08-26 08:37:49 -0400
commit8eb70612706dc334bd0371de136c1f15af698556 (patch)
tree396398ddd19488831accefb7ab9be32aa158f4dd /drivers/misc/ibmasm/command.c
parent731182179948207251054826d65efe61302c4384 (diff)
scsi: megaraid_mm: Fix end of loop tests for list_for_each_entry()
[ Upstream commit 77541f78eadfe9fdb018a7b8b69f0f2af2cf4b82 ] The list_for_each_entry() iterator, "adapter" in this code, can never be NULL. If we exit the loop without finding the correct adapter then "adapter" points invalid memory that is an offset from the list head. This will eventually lead to memory corruption and presumably a kernel crash. Link: https://lore.kernel.org/r/20210708074642.23599-1-harshvardhan.jha@oracle.com Acked-by: Sumit Saxena <sumit.saxena@broadcom.com> Signed-off-by: Harshvardhan Jha <harshvardhan.jha@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/misc/ibmasm/command.c')
0 files changed, 0 insertions, 0 deletions