efivars: handle errors from register_efivars()
authorDan Carpenter <error27@gmail.com>
Fri, 18 Mar 2011 07:12:38 +0000 (10:12 +0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Apr 2011 23:45:50 +0000 (16:45 -0700)
commit3116aabc81ccfeeb73f183ed8b1e3031520d1e59
tree41ec771991e0ad3d074be01a6b5e3da46b51721e
parent051d51bc6a867d9466a975e4d7ca51b21a9c2c4e
efivars: handle errors from register_efivars()

We should unwind and return an error if register_efivars() fails.

Signed-off-by: Dan Carpenter <error27@gmail.com>
Acked-by: Mike Waychison <mikew@google.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/firmware/efivars.c