Fix NULL pointer dereference and use struct_size()
Status from this message: Applied, thanks.
Get series with b4
b4 am [email protected]Versions newest first
Patches in v1 Applied
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | mfd: sm501: Fix potential NULL pointer dereferencedrivers/ | +3 | 2 replies | |
| 2/2 | mfd: sm501: Use struct_size() in devm_kzalloc()drivers/ | +1 | 1 reply |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Linus Walleij |
|---|---|
| Series | R-b |
| 1/2 | |
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH 0/2] Fix NULL pointer dereference and use struct_size()
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(-)
Signature · 1 line
2.20.1