summaryrefslogtreecommitdiffstats
path: root/mm
diff options
context:
space:
mode:
authorTomasz Figa <t.figa@samsung.com>2013-05-24 15:55:35 -0700
committerLinus Torvalds <torvalds@linux-foundation.org>2013-05-24 16:22:53 -0700
commit43c523bff7c3b47506d536c10637be8399dfd85f (patch)
tree8d42a0a165fde104013254cfcfcdee74fb612797 /mm
parentb4ca2b4b577c3530e34dcfaafccb2cc680ce95d1 (diff)
downloadop-kernel-dev-43c523bff7c3b47506d536c10637be8399dfd85f.zip
op-kernel-dev-43c523bff7c3b47506d536c10637be8399dfd85f.tar.gz
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 <t.figa@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: Sachin Kamat <sachin.kamat@linaro.org> Reviewed-by: Jingoo Han <jg1.han@samsung.com> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
Diffstat (limited to 'mm')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud