diff options
author | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2008-07-21 09:15:51 -0300 |
---|---|---|
committer | Henrique de Moraes Holschuh <hmh@hmh.eng.br> | 2008-07-21 09:15:51 -0300 |
commit | bf20e740a4bcc686de02e2fd1c1810a58872f46e (patch) | |
tree | a3fccedd9c0da2ccdd2088de42e986430c1a4d83 /include/net/dsfield.h | |
parent | 490673dc98adfc7de1703cc88508902bd10f446b (diff) |
ACPI: thinkpad-acpi: don't misdetect in get_thinkpad_model_data() on -ENOMEM
Explicitly check for memory allocation failures, and return status to
indicate that we could not collect data due to errors.
This lets the driver have a far more predictable failure mode on ENOMEM in
that codepath: it will refuse to load. This is far better than trying to
proceed with missing data which is used to detect quirks, etc.
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Diffstat (limited to 'include/net/dsfield.h')
0 files changed, 0 insertions, 0 deletions