From: Dmitry Torokhov Date: Mon, 6 Jan 2014 23:16:37 +0000 (+0100) Subject: PNPBIOS: check return value of pnp_add_device() X-Git-Tag: v3.14-rc1~107^2~7^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8254e0e72c8cc6131f789f8645338b719f57648;p=pandora-kernel.git 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 Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed