]> git.baikalelectronics.ru Git - kernel.git/commit
Staging: speakup: Don't try to access an unallocated struct.
authorChristopher Brannon <chris@the-brannons.com>
Tue, 22 Nov 2011 19:46:23 +0000 (13:46 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Sun, 27 Nov 2011 02:13:55 +0000 (18:13 -0800)
commit929e095f48e4034166eeb6f62d3a222e391f29c5
tree0b0d8e8a1292476f03ff87ff226db3f5911ee013
parentfeb0d6a3233db00a877e298564b67fd4cf9db51a
Staging: speakup: Don't try to access an unallocated struct.

In speakup_init, we have the following:
if (quiet_boot)
spk_shut_up |= 0x01;
And in spk_types.h:
This patch moves the statement in speakup_init so that
speakup_console[vc->vc_num] is guaranteed to be allocated when it
executes.

Signed-off-by: Christopher Brannon <chris@the-brannons.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/staging/speakup/main.c