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
---
drivers/pnp/pnpacpi/core.c | 11 +--
1 file changed, 9 insertions(+), 2 deletions(-)
diff
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 dmitry.torok...@gmail.com
---
drivers/pnp/pnpacpi/core.c | 11 +--
1 file changed, 9
2 matches
Mail list logo