[PATCH 4.14 64/80] commoncap: Handle memory allocation failure.

2018-04-27 Thread Greg Kroah-Hartman
4.14-stable review patch. If anyone has any objections, please let me know. -- From: Tetsuo Handa commit 1f5781725dcbb026438e77091c91a94f678c3522 upstream. syzbot is reporting NULL pointer dereference at xattr_getsecurity() [1], for cap_inode_getsecurity() is returning sizeof(

[PATCH 4.16 61/81] commoncap: Handle memory allocation failure.

2018-04-27 Thread Greg Kroah-Hartman
4.16-stable review patch. If anyone has any objections, please let me know. -- From: Tetsuo Handa commit 1f5781725dcbb026438e77091c91a94f678c3522 upstream. syzbot is reporting NULL pointer dereference at xattr_getsecurity() [1], for cap_inode_getsecurity() is returning sizeof(

[PATCH 2/3] pinctrl: samsung: Handle memory allocation failure during wakeup banks init

2017-05-23 Thread Krzysztof Kozlowski
Check if kmemdup failed during wakeup banks initialization. Otherwise NULL pointer would be stored under "irq_chip" member of bank and later dereferenced in interrupt handler. Signed-off-by: Krzysztof Kozlowski --- drivers/pinctrl/samsung/pinctrl-exynos.c | 2 ++ 1 file changed, 2 insertions(+)

handle memory allocation failure

2008-02-19 Thread Jim Meyering
Hello, I spotted a few unchecked memory allocation failures recently, and went looking for more. I found and fixed seven others. I posted them all in one change-set, here: Thanks again to Markus Armbruster for a rigorous review. Subject: [PATCH] Handle memory allocation failure. http

[PATCH] Handle memory allocation failure.

2008-02-08 Thread Jim Meyering
on Sep 17 00:00:00 2001 From: Jim Meyering <[EMAIL PROTECTED]> Date: Fri, 8 Feb 2008 15:23:35 +0100 Subject: [PATCH] Handle memory allocation failure. * arch/alpha/kernel/module.c (module_frob_arch_sections): Handle kcalloc failure. * fs/9p/v9fs.c (v9fs_parse_options): Handle kstrdup and match_