diff options
author | Jean Delvare <[email protected]> | 2010-10-21 11:48:47 +0200 |
---|---|---|
committer | Matthew Garrett <[email protected]> | 2010-10-21 10:10:49 -0400 |
commit | aa13857f13c3d5535904781e264d8f9115e30438 (patch) | |
tree | 88493bebeabb3a8d2595569ac3aec968577b4947 /net/unix/sysctl_net_unix.c | |
parent | 4119617919c243755946699808ffd0f4befa62c7 (diff) |
panasonic-laptop: Handle errors properly if they happen
acpi_pcc_retrieve_biosdata() returns success instead of error if
HKEY.SINF is invalid. Fix this.
Furthermore, if acpi_pcc_retrieve_biosdata() returns an error
during device addition, initialization is properly reverted but value
0 is returned, which means success. This would cause a crash when
later using or removing the device, so fix this too.
Signed-off-by: Jean Delvare <[email protected]>
Cc: Harald Welte <[email protected]>
Cc: Bruno Premont <[email protected]>
Signed-off-by: Matthew Garrett <[email protected]>
Diffstat (limited to 'net/unix/sysctl_net_unix.c')
0 files changed, 0 insertions, 0 deletions