[PATCH 0/2] Fix NULL pointer dereference and use struct_size()
From: Gustavo A. R. Silva
Date: Tue Jan 22 2019 - 11:55:17 EST
Hi,
The first patch in this series fixes a potential NULL pointer
dereference by adding a NULL check. A tag for stable has been
added for this patch.
The second patch promotes the use of struct_size() in devm_kzalloc().
Both issues were detected with the help of Coccinelle.
Gustavo A. R. Silva (2):
mfd: sm501: Fix potential NULL pointer dereference
mfd: sm501: Use struct_size() in devm_kzalloc()
drivers/mfd/sm501.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
--
2.20.1