Re: [GIT BISECT -next] mem.c: could not login on console of fedora 10

From: Kay Sievers
Date: Mon Sep 14 2009 - 07:50:04 EST


2009/9/14 Jin Dongming <jin.dongming@xxxxxxxxxxxxxxxxxx>:
> When I build and boot -next on fedora 10, I can not login anymore.
> When I input the user name and password, the system does not output
> any message and requires user to input the user name and password
> again and again.
>
> I find the patch which caused this problem with "GIT BISECT" command.
> And the patch is
> Â Âcommit 7c4b7daa1878972ed0137c95f23569124bd6e2b1
> Â Â"mem_class: use minor as index instead of searching the array".
>
> Though I don't know the real reason why user could not login, I
> confirmed the patch I made as following could resolve the problem on
> fedora 10.
>
> Signed-off-by: Jin Dongming <jin.dongming@xxxxxxxxxxxxxxxxxx>
> ---
> Âdrivers/char/mem.c | Â Â4 ++--
> Â1 files changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/char/mem.c b/drivers/char/mem.c
> index bed3503..0491cdf 100644
> --- a/drivers/char/mem.c
> +++ b/drivers/char/mem.c
> @@ -878,8 +878,8 @@ static const struct memdev {
> Â Â Â Â[ 4] = { "port", &port_fops, NULL },
> Â#endif
> Â Â Â Â[ 5] = { "zero", &zero_fops, &zero_bdi },
> - Â Â Â [ 6] = { "full", &full_fops, NULL },
> - Â Â Â [ 7] = { "random", &random_fops, NULL },
> + Â Â Â [ 7] = { "full", &full_fops, NULL },
> + Â Â Â [ 8] = { "random", &random_fops, NULL },
> Â Â Â Â[ 9] = { "urandom", &urandom_fops, NULL },
> Â Â Â Â[11] = { "kmsg", &kmsg_fops, NULL },
> Â#ifdef CONFIG_CRASH_DUMP

Yeah, that looks messed up and it seems like the right fix.
Greg, care to merge that into the patch in your tree?

Thanks for the fix and sorry,
Kay
--
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/