]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitea40b9dea8ab2d82d78e5053f69c5307d685b05a
tree8807076c4bd088a3923d6b765981f1002e2f701e
parentc57577d107964de5e08703a68cdb9d8cbf08a5d4
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