android: staging: ram_console: fix crash in ram_console_late_init
authorColin Cross <ccross@android.com>
Mon, 5 Mar 2012 21:04:53 +0000 (13:04 -0800)
committerColin Cross <ccross@android.com>
Mon, 5 Mar 2012 21:32:38 +0000 (13:32 -0800)
commitcd7bc93466877cb1396cbddb4e608252db2a9a3f
tree3411093bc9b44874fc990fb68f10f7d921dfb854
parent1ebd20c6af8dd5e4d480a2616ac31afb89d52e52
android: staging: ram_console: fix crash in ram_console_late_init

If the persistent ram buffer is not available, ram_console_late_init
would crash when dereferencing ram_console_zone.  Return early if
ram console was not initialized.

Change-Id: Idff0f690406cdb2fe977bab64a39dc8b40dd4566
Signed-off-by: Colin Cross <ccross@android.com>
drivers/staging/android/ram_console.c