rtc: ac100: Add NULL checking for devm_kzalloc call
authorAxel Lin <axel.lin@ingics.com>
Fri, 9 Sep 2016 10:03:54 +0000 (18:03 +0800)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Wed, 21 Sep 2016 22:14:41 +0000 (00:14 +0200)
commit473195f80f3940afc8a1461831d74f9a44bba538
tree8807076c4bd088a3923d6b765981f1002e2f701e
parentee85bb5bbe4ae690b48625874bc2b6ecc981326e
rtc: ac100: Add NULL checking for devm_kzalloc call

devm_kzalloc can return NULL, add NULL checking to prevent NULL pointer
dereference.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/rtc-ac100.c