From: Dmitry Torokhov Date: Sun, 15 Dec 2013 12:10:11 +0000 (-0800) Subject: PNPACPI: check return value of pnp_add_device() X-Git-Tag: v3.14-rc1~107^2~7^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=249135d1a2ea3c1719c48d31351413d55d2fdef4;p=pandora-kernel.git PNPACPI: check return value of pnp_add_device() pnp_add_device() may fail so we need to handle errors and avoid leaking memory. Also, do not use ACPI-specific return codes (AE_OK) but rather standard one (0). Signed-off-by: Dmitry Torokhov Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed