The patch titled Subject: drivers/misc/ti-st/st_core.c: missing NULL check has been added to the -mm tree. Its filename is drivers-misc-ti-st-st_corec-missing-null-check.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: Alan Cox <alan@xxxxxxxxxxxxxxx> Subject: drivers/misc/ti-st/st_core.c: missing NULL check Addresses https://bugzilla.kernel.org/show_bug.cgi?44431 Reported-by: <rucsoftsec@xxxxxxxxx> Signed-off-by: Alan Cox <alan@xxxxxxxxxxxxxxx> Cc: Pavan Savoy <pavan_savoy@xxxxxx> Signed-off-by: Andrew Morton <akpm@xxxxxxxxxxxxxxxxxxxx> --- drivers/misc/ti-st/st_core.c | 5 +++++ 1 file changed, 5 insertions(+) diff -puN drivers/misc/ti-st/st_core.c~drivers-misc-ti-st-st_corec-missing-null-check drivers/misc/ti-st/st_core.c --- a/drivers/misc/ti-st/st_core.c~drivers-misc-ti-st-st_corec-missing-null-check +++ a/drivers/misc/ti-st/st_core.c @@ -349,6 +349,11 @@ void st_int_recv(void *disc_data, st_gdata->rx_skb = alloc_skb( st_gdata->list[type]->max_frame_size, GFP_ATOMIC); + if (st_gdata->rx_skb == NULL) { + pr_err("out of memory: dropping\n"); + goto done; + } + skb_reserve(st_gdata->rx_skb, st_gdata->list[type]->reserve); /* next 2 required for BT only */ _ Subject: Subject: drivers/misc/ti-st/st_core.c: missing NULL check Patches currently in -mm which might be from alan@xxxxxxxxxxxxxxx are origin.patch linux-next.patch ppc-e500_tlb-memset-clears-nothing.patch drivers-media-dvb-dvb-usb-az6007c-fix-incorrect-memcpy.patch drivers-media-video-cx25821-cx25821-medusa-videoc-incorrect-check-on-decoder-type.patch drivers-media-video-ov9640c-fix-missing-break.patch fs-make-dumpable=2-require-fully-qualified-path.patch coredump-warn-about-unsafe-suid_dumpable-core_pattern-combo.patch kernel-sysc-avoid-argv_freenull.patch drivers-misc-ti-st-st_corec-missing-null-check.patch drivers-message-i2o-i2o_procc-the-pointer-returned-from-chtostr-points-to-an-array-which-is-no-longer-valid.patch drivers-message-i2o-i2o_configc-bound-allocation.patch taskstats-check-nla_reserve-return.patch drivers-misc-lkdtmc-fix-missing-allocation-failure-check.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