Skip to content

Commit 162dd42

Browse files
Jin Dongminggregkh
authored andcommitted
mem_class: fix bug
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@np.css.fujitsu.com> Acked-by: Kay Sievers <kay.sievers@vrfy.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
1 parent 389e0cb commit 162dd42

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/char/mem.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -878,8 +878,8 @@ static const struct memdev {
878878
[ 4] = { "port", &port_fops, NULL },
879879
#endif
880880
[ 5] = { "zero", &zero_fops, &zero_bdi },
881-
[ 6] = { "full", &full_fops, NULL },
882-
[ 7] = { "random", &random_fops, NULL },
881+
[ 7] = { "full", &full_fops, NULL },
882+
[ 8] = { "random", &random_fops, NULL },
883883
[ 9] = { "urandom", &urandom_fops, NULL },
884884
[11] = { "kmsg", &kmsg_fops, NULL },
885885
#ifdef CONFIG_CRASH_DUMP

0 commit comments

Comments
 (0)