The patch titled CIFS: check for granted memory has been removed from the -mm tree. Its filename was cifs-check-for-granted-memory.patch This patch was dropped because it was merged into mainline or a subsystem tree ------------------------------------------------------ Subject: CIFS: check for granted memory From: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Add a check for granted memory to prevent possible NULL pointer usage. Signed-off-by: Cyrill Gorcunov <gorcunov@xxxxxxxxx> Cc: Steven French <sfrench@xxxxxxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- fs/cifs/sess.c | 4 ++++ 1 files changed, 4 insertions(+) diff -puN fs/cifs/sess.c~cifs-check-for-granted-memory fs/cifs/sess.c --- a/fs/cifs/sess.c~cifs-check-for-granted-memory +++ a/fs/cifs/sess.c @@ -372,6 +372,10 @@ CIFS_SessSetup(unsigned int xid, struct /* 2000 big enough to fit max user, domain, NOS name etc. */ str_area = kmalloc(2000, GFP_KERNEL); + if (str_area == NULL) { + cifs_small_buf_release(smb_buf); + return -ENOMEM; + } bcc_ptr = str_area; ses->flags &= ~CIFS_SES_LANMAN; _ Patches currently in -mm which might be from gorcunov@xxxxxxxxx are origin.patch sky-cpu-and-nexus-code-style-improvement.patch sky-cpu-and-nexus-include-ioh.patch sky-cpu-and-nexus-check-for-platform_get_resource-ret.patch sky-cpu-and-nexus-check-for-create_proc_entry-ret-code.patch sky-cpu-use-c99-style-for-struct-init.patch sky-cpu-and-nexus-get-rid-of-useless-null-init.patch sky-cpu-and-nexus-use-seq_file-single_open-on-proc-interface.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