The patch titled Subject: drivers/edac/edac_mc_sysfs.c: check the kzalloc return value has been added to the -mm tree. Its filename is drivers-edac-edac_mc_sysfsc-check-the-kzalloc-return-value.patch Before you just go and hit "reply", please: a) Consider who else should be cc'ed b) Prefer to cc a suitable mailing list as well c) Ideally: find the original patch on the mailing list and do a reply-to-all to that, adding suitable additional cc's *** Remember to use Documentation/SubmitChecklist when testing your code *** The -mm tree is included into linux-next and is updated there every 3-4 working days ------------------------------------------------------ From: Denis Kirjanov <kirjanov@xxxxxxxxx> Subject: drivers/edac/edac_mc_sysfs.c: check the kzalloc return value Signed-off-by: Denis Kirjanov <kirjanov@xxxxxxxxx> Cc: Doug Thompson <dougthompson@xxxxxxxxxxxx> Cc: Borislav Petkov <borislav.petkov@xxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/edac/edac_mc_sysfs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff -puN drivers/edac/edac_mc_sysfs.c~drivers-edac-edac_mc_sysfsc-check-the-kzalloc-return-value drivers/edac/edac_mc_sysfs.c --- a/drivers/edac/edac_mc_sysfs.c~drivers-edac-edac_mc_sysfsc-check-the-kzalloc-return-value +++ a/drivers/edac/edac_mc_sysfs.c @@ -1136,7 +1136,8 @@ int __init edac_mc_sysfs_init(void) } mci_pdev = kzalloc(sizeof(*mci_pdev), GFP_KERNEL); - + if (!mci_pdev) + return -ENOMEM; mci_pdev->bus = edac_subsys; mci_pdev->type = &mc_attr_type; device_initialize(mci_pdev); _ Patches currently in -mm which might be from kirjanov@xxxxxxxxx are linux-next.patch drivers-edac-edac_mc_sysfsc-check-the-kzalloc-return-value.patch -- To unsubscribe from this list: send the line "unsubscribe mm-commits" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html