summaryrefslogtreecommitdiffstats
path: root/drivers/pnp/isapnp
diff options
context:
space:
mode:
authorDmitry Torokhov <dmitry.torokhov@gmail.com>2014-01-07 00:16:37 +0100
committerRafael J. Wysocki <rafael.j.wysocki@intel.com>2014-01-07 00:16:37 +0100
commitd8254e0e72c8cc6131f789f8645338b719f57648 (patch)
tree0189fc5518d6d0d8fb2c909eefaac92e0a7723bd /drivers/pnp/isapnp
parentPNP: Mark the function pnp_build_option() as static in resource.c (diff)
downloadlinux-d8254e0e72c8cc6131f789f8645338b719f57648.tar.xz
linux-d8254e0e72c8cc6131f789f8645338b719f57648.zip
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>
Diffstat (limited to 'drivers/pnp/isapnp')
0 files changed, 0 insertions, 0 deletions