Re: [PATCH v2] x86/earlyprintk: Add a force option for pciserial device

From: Borislav Petkov
Date: Mon Oct 01 2018 - 16:30:00 EST


On Mon, Oct 01, 2018 at 10:18:10PM +0800, Feng Tang wrote:
> As I rechecked, the baud rate for pciserial is optional, so there may
> be no ",baudrate" following the "force". So this 2 strncmp is to
> cover conditions for with and without baudrate.

And what guarantees you have a space after the "force"?

!strncmp(s, "force ", 6)
^
--
Regards/Gruss,
Boris.

Good mailing practices for 400: avoid top-posting and trim the reply.