]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit74a9c525617ab2477d2333c8ab9873510d6d496f
treee220633213d9a55c0380a2f0202b6467cdd37e06
parent7c5eea70a707614ec0e841026e2056f1b41d8092
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