linux/drivers/pnp/pnpbios
Dmitry Torokhov d8254e0e72 PNPBIOS: check return value of pnp_add_device()
pnp_add_device() may fail so we need to handle errors and avoid leaking
memory.

Also, when pnp_alloc_dev fails, return -ENOMEM rather than -1.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
2014-01-07 00:16:37 +01:00
..
bioscalls.c Remove all #inclusions of asm/system.h 2012-03-28 18:30:03 +01:00
core.c PNPBIOS: check return value of pnp_add_device() 2014-01-07 00:16:37 +01:00
Kconfig drivers/pnp/pnpbios: remove depends on CONFIG_EXPERIMENTAL 2013-01-26 00:33:09 +01:00
Makefile
pnpbios.h
proc.c Merge branch 'for-linus' of git://git.kernel.org/pub/scm/linux/kernel/git/viro/vfs 2013-05-01 17:51:54 -07:00
rsparser.c treewide: Convert uses of struct resource to resource_size(ptr) 2011-06-10 14:55:36 +02:00