OpenCloudOS-Kernel/drivers/scsi/megaraid
Nicholas Krause 7296f62f03 megaraid: Fix possible NULL pointer deference in mraid_mm_ioctl
This adds the needed check after the call to the function
mraid_mm_alloc_kioc in order to make sure that this function has not
returned NULL and therefore makes sure we do not deference a NULL
pointer if one is returned by mraid_mm_alloc_kioc.  Further more add
needed comments explaining that this function call can return NULL if
the list head is empty for the pointer passed in order to allow furture
users to understand this required pointer check.

Signed-off-by: Nicholas Krause <xerofoify@gmail.com>
Acked-by: Sumit Saxena <sumit.saxena@avagotech.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
2016-01-08 13:03:53 -05:00
..
Kconfig.megaraid
Makefile [SCSI] megaraid_sas: Add 9565/9285 specific code 2010-12-22 23:26:53 -06:00
mbox_defs.h Fix common misspellings 2011-03-31 11:26:23 -03:00
mega_common.h scsi: use 64-bit LUNs 2014-07-17 22:07:37 +02:00
megaraid_ioctl.h
megaraid_mbox.c scsi: drop reason argument from ->change_queue_depth 2014-11-24 14:45:27 +01:00
megaraid_mbox.h
megaraid_mm.c megaraid: Fix possible NULL pointer deference in mraid_mm_ioctl 2016-01-08 13:03:53 -05:00
megaraid_mm.h
megaraid_sas.h megaraid_sas: Make tape drives visible on PERC5 controllers 2015-11-09 11:06:12 -05:00
megaraid_sas_base.c SCSI queue for 4.4. 2015-11-12 07:06:18 -05:00
megaraid_sas_fp.c megaraid_sas : Remove debug print from function megasas_update_span_set 2015-11-02 22:58:29 -05:00
megaraid_sas_fusion.c megaraid_sas: Fix sparse warning 2015-11-09 11:07:16 -05:00
megaraid_sas_fusion.h megaraid_sas: Remove PCI id checks 2015-10-29 03:14:54 -04:00