staging: speakup: fix memory leak
authorVasiliy Kulikov <segooon@gmail.com>
Sun, 17 Oct 2010 14:51:57 +0000 (18:51 +0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 19 Oct 2010 17:10:54 +0000 (10:10 -0700)
commitb3495cebaaa64c9e6df9ab663dfb75e86a08f9ce
tree163920dbdbd48bee38fbd2a8d0a99f5592080985
parent6a56486716d54d2c16c46cde6a5cf10062cd6719
staging: speakup: fix memory leak

speakup_init() didn't free first_console if speakup_kobj_init() fails.
Also propagate speakup_kobj_init()'s return code.

Signed-off-by: Vasiliy Kulikov <segooon@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/speakup/main.c