aboutsummaryrefslogtreecommitdiff
path: root/drivers/scsi/mpt2sas/mpi/mpi2_raid.h
diff options
context:
space:
mode:
authorTomasz Figa <[email protected]>2013-05-24 15:55:35 -0700
committerLinus Torvalds <[email protected]>2013-05-24 16:22:53 -0700
commit43c523bff7c3b47506d536c10637be8399dfd85f (patch)
tree8d42a0a165fde104013254cfcfcdee74fb612797 /drivers/scsi/mpt2sas/mpi/mpi2_raid.h
parentb4ca2b4b577c3530e34dcfaafccb2cc680ce95d1 (diff)
drivers/rtc/rtc-max8998.c: check for pdata presence before dereferencing
Currently the driver can crash with a NULL pointer dereference if no pdata is provided, despite of successful registration of the MFD part. This patch fixes the problem by adding a NULL check before dereferencing the pdata pointer. Signed-off-by: Tomasz Figa <[email protected]> Signed-off-by: Kyungmin Park <[email protected]> Cc: Sachin Kamat <[email protected]> Reviewed-by: Jingoo Han <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
Diffstat (limited to 'drivers/scsi/mpt2sas/mpi/mpi2_raid.h')
0 files changed, 0 insertions, 0 deletions