]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
scsi: aacraid: Fix potential null access
authorRaghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Tue, 14 Mar 2017 16:20:19 +0000 (09:20 -0700)
committerMartin K. Petersen <martin.petersen@oracle.com>
Wed, 15 Mar 2017 23:00:36 +0000 (19:00 -0400)
commite498520edec6655e93ac5e768b04f4fd2299fe4d
treeb67c2b8aec38197655f0e3979f5b7daab11c947c
parent5f7c2beef819d9ea2d1b814edf6f5981420e9cf8
scsi: aacraid: Fix potential null access

Currently, command threads fails to return ioctls commands for older
controller versions, since it returns when all the fibs have been
allocated. Another issue is even all the fibs have not been allocated,
the correct allocated fibs is not updated nor freed.

Fixes: 113156bcea9ef1e6 (scsi: aacraid: Reworked aac_command_thread)
Reported-by: Tomas Henzl <thenzl@redhat.com>
Signed-off-by: Raghava Aditya Renukunta <RaghavaAditya.Renukunta@microsemi.com>
Reviewed-by: Dave Carroll <david.carroll@microsemi.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/aacraid/commsup.c