mem_class: fix bug
authorJin Dongming <jin.dongming@np.css.fujitsu.com>
Mon, 14 Sep 2009 07:02:26 +0000 (16:02 +0900)
committerGreg Kroah-Hartman <gregkh@suse.de>
Tue, 15 Sep 2009 16:50:47 +0000 (09:50 -0700)
commit162dd4212409fd2d36ff22547ea821bf3e86bcc9
tree9eb07985adeaf06d820f47abf50f778af1b70f8c
parent389e0cb9a1dec22ec37a104dec5009dd7a33dd59
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>
drivers/char/mem.c