linux/drivers/staging/gasket
Ivan Bornyakov 548b9f03f0 staging: gasket: sysfs: fix potential null dereference
Add handling of possible allocation failure.

Reported by smatch:

  drivers/staging/gasket/gasket_sysfs.c:105 put_mapping() error: potential null dereference 'files_to_remove'. (kcalloc returns null)

Signed-off-by: Ivan Bornyakov <brnkv.i1@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2018-08-02 08:14:35 +02:00
..
apex_driver.c staging: gasket: apex: move driver-private defines out of apex.h 2018-08-01 20:07:03 +02:00
apex.h staging: gasket: apex: move driver-private defines out of apex.h 2018-08-01 20:07:03 +02:00
gasket_constants.h staging: gasket: remove redundant license information 2018-07-12 21:48:30 +02:00
gasket_core.c staging: gasket: core: use bool type for ns_capable result 2018-08-01 20:07:03 +02:00
gasket_core.h staging: gasket: core: fix function param line continuation style 2018-08-01 20:07:02 +02:00
gasket_interrupt.c staging: gasket: interrupt: fix function param line continuation style 2018-08-01 20:07:03 +02:00
gasket_interrupt.h staging: gasket: interrupt: fix function param line continuation style 2018-08-01 20:07:03 +02:00
gasket_ioctl.c staging: gasket: ioctl: fix function param line continuation style 2018-08-01 20:07:02 +02:00
gasket_ioctl.h staging: gasket: common ioctl dispatcher add __user annotations 2018-07-21 08:50:36 +02:00
gasket_page_table.c Revert "staging: gasket: page table: hold references to device and pci_dev" 2018-08-01 20:07:03 +02:00
gasket_page_table.h staging: gasket: page table: fix header file include guard symbol 2018-08-01 20:07:03 +02:00
gasket_sysfs.c staging: gasket: sysfs: fix potential null dereference 2018-08-02 08:14:35 +02:00
gasket_sysfs.h staging: gasket: sysfs: fix function param line continuation style 2018-08-01 20:07:02 +02:00
gasket.h staging: gasket: remove redundant license information 2018-07-12 21:48:30 +02:00
Kconfig staging: gasket: allow compile for ARM64 in Kconfig 2018-07-21 08:50:34 +02:00
Makefile
TODO staging: gasket: TODO: remove entry for multi-line alignment style 2018-08-01 20:07:03 +02:00