Re: [PATCH] vt: incomplete initialization of vc_tab_stop

From: Christoph Hellwig
Date: Sat Oct 18 2008 - 07:57:22 EST


On Sat, Oct 18, 2008 at 01:49:31PM +0200, Wolfgang Kroworsch wrote:
> vc->vc_tab_stop[1] =
> vc->vc_tab_stop[2] =
> vc->vc_tab_stop[3] =
> - vc->vc_tab_stop[4] = 0x01010101;
> + vc->vc_tab_stop[4] =
> + vc->vc_tab_stop[5] =
> + vc->vc_tab_stop[6] =
> + vc->vc_tab_stop[7] = 0x01010101;
>
> + vc->vc_tab_stop[4] =
> + vc->vc_tab_stop[5] =
> + vc->vc_tab_stop[6] =
> + vc->vc_tab_stop[7] = 0;

Using memset might be a beter idea.

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/