[PATCH] hvc_console: Add some sanity checks