sony-laptop: handle allocation failures
authorDan Carpenter <error27@gmail.com>
Sat, 26 Feb 2011 12:55:24 +0000 (15:55 +0300)
committerMatthew Garrett <mjg@redhat.com>
Mon, 28 Mar 2011 10:07:25 +0000 (06:07 -0400)
commit31f007598cc547ba3239524470386af8ae5f1c13
treee220633213d9a55c0380a2f0202b6467cdd37e06
parent7227dedbc22f66f1bd310c866053b08de0496e38
sony-laptop: handle allocation failures

Return -ENOMEM if kzalloc() fails.  The callers already handle error
returns.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Signed-off-by: Matthew Garrett <mjg@redhat.com>
drivers/platform/x86/sony-laptop.c